summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/lib/numtohost.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/lib/numtohost.c')
-rw-r--r--usr.sbin/xntpd/lib/numtohost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/xntpd/lib/numtohost.c b/usr.sbin/xntpd/lib/numtohost.c
index 844bbce..9d83584 100644
--- a/usr.sbin/xntpd/lib/numtohost.c
+++ b/usr.sbin/xntpd/lib/numtohost.c
@@ -29,9 +29,9 @@ numtohost(netnum)
|| ((hp = gethostbyaddr((char *)&netnum, sizeof netnum, AF_INET))
== 0))
return numtoa(netnum);
-
+
LIB_GETBUF(bp);
-
+
bp[LIB_BUFLENGTH-1] = '\0';
(void) strncpy(bp, hp->h_name, LIB_BUFLENGTH-1);
return bp;
OpenPOWER on IntegriCloud