aboutsummaryrefslogtreecommitdiff
path: root/inet
diff options
context:
space:
mode:
Diffstat (limited to 'inet')
-rw-r--r--inet/getnameinfo.c10
-rw-r--r--inet/rexec.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index 0811f27..6beeba0 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -318,11 +318,11 @@ getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host,
size_t scopelen;
scopebuf[0] = SCOPE_DELIMITER;
- scopelen = 1 + snprintf (scopeptr,
- (scopebuf
- + sizeof scopebuf
- - scopeptr),
- "%u", scopeid);
+ scopelen = 1 + __snprintf (scopeptr,
+ (scopebuf
+ + sizeof scopebuf
+ - scopeptr),
+ "%u", scopeid);
real_hostlen = __strnlen (host, hostlen);
if (real_hostlen + scopelen + 1 > hostlen)
diff --git a/inet/rexec.c b/inet/rexec.c
index 4eae8f7..30b7cca 100644
--- a/inet/rexec.c
+++ b/inet/rexec.c
@@ -65,7 +65,7 @@ rexec_af(ahost, rport, name, pass, cmd, fd2p, af)
int gai;
char servbuff[NI_MAXSERV];
- snprintf(servbuff, sizeof(servbuff), "%d", ntohs(rport));
+ __snprintf(servbuff, sizeof(servbuff), "%d", ntohs(rport));
servbuff[sizeof(servbuff) - 1] = '\0';
memset(&hints, 0, sizeof(hints));