X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/92d3fd1b47a8c041297a3dfa655f0d548012f61c..dff10c7f70d539c431a1eba9ab5e076d8b0f5c8e:/print-ipx.c diff --git a/print-ipx.c b/print-ipx.c index 83b8330a..a5decb4a 100644 --- a/print-ipx.c +++ b/print-ipx.c @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.22 1999-11-21 09:36:54 fenner Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.23 2000-01-17 06:24:25 itojun Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -92,7 +92,7 @@ ipxaddr_string(u_int32_t net, const u_char *node) { static char line[256]; - sprintf(line, "%x.%02x:%02x:%02x:%02x:%02x:%02x", + snprintf(line, sizeof(line), "%x.%02x:%02x:%02x:%02x:%02x:%02x", net, node[0], node[1], node[2], node[3], node[4], node[5]); return line;