diff options
Diffstat (limited to 'src/lib/libc/net/ipx_ntoa.c')
-rw-r--r-- | src/lib/libc/net/ipx_ntoa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/ipx_ntoa.c b/src/lib/libc/net/ipx_ntoa.c index 1dcfe7181b..598c94d599 100644 --- a/src/lib/libc/net/ipx_ntoa.c +++ b/src/lib/libc/net/ipx_ntoa.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char rcsid[] = "$OpenBSD: ipx_ntoa.c,v 1.2 1996/08/19 08:29:20 tholo Exp $"; | 35 | static char rcsid[] = "$OpenBSD: ipx_ntoa.c,v 1.3 2002/05/24 21:22:37 deraadt Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <sys/param.h> | 38 | #include <sys/param.h> |
@@ -45,7 +45,7 @@ ipx_ntoa(addr) | |||
45 | { | 45 | { |
46 | static char obuf[] = "xxxx.xx:xx:xx:xx:xx:xx.uuuuu"; | 46 | static char obuf[] = "xxxx.xx:xx:xx:xx:xx:xx.uuuuu"; |
47 | 47 | ||
48 | sprintf(obuf, "%8xH.%02x:%02x:%02x:%02x:%02x:%02x.%u", | 48 | snprintf(obuf, sizeof obuf, "%8xH.%02x:%02x:%02x:%02x:%02x:%02x.%u", |
49 | ntohl(addr.ipx_net.l_net), | 49 | ntohl(addr.ipx_net.l_net), |
50 | addr.ipx_host.c_host[0], | 50 | addr.ipx_host.c_host[0], |
51 | addr.ipx_host.c_host[1], | 51 | addr.ipx_host.c_host[1], |