Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
77fecaaf
Commit
77fecaaf
authored
Aug 23, 2002
by
Per Cederqvist
Browse files
(isc_getipnum): Use the entire hostname buffer.
parent
5d085601
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libisc-new/src/isc_socket.c
View file @
77fecaaf
...
...
@@ -173,12 +173,12 @@ char *isc_getipnum(IscAddress *ia, char *buf, int len)
if
(
!
buf
)
{
buf
=
hostname
;
len
=
sizeof
(
hostname
)
-
1
;
len
=
sizeof
(
hostname
);
}
addr
=
(
struct
sockaddr_in
*
)
&
ia
->
ip
.
saddr
;
strncpy
(
buf
,
inet_ntoa
(
addr
->
sin_addr
),
len
);
strncpy
(
buf
,
inet_ntoa
(
addr
->
sin_addr
),
len
-
1
);
buf
[
len
]
=
'\0'
;
return
buf
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment