summaryrefslogtreecommitdiff
path: root/print-sunrpc.c
diff options
context:
space:
mode:
authoritojun <itojun>2000-04-27 11:10:59 +0000
committeritojun <itojun>2000-04-27 11:10:59 +0000
commit800569a981e93c069902fdf1635d7b1bd3d3fd40 (patch)
tree2c4a8022120fd8b9d006e2fef60fe34cde675a77 /print-sunrpc.c
parenta09002d6a85b63a5a56624c3a1c7ffa43be1183a (diff)
downloadtcpdump-800569a981e93c069902fdf1635d7b1bd3d3fd40.tar.gz
use strlcpy (avoid strcpy)
Diffstat (limited to 'print-sunrpc.c')
-rw-r--r--print-sunrpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-sunrpc.c b/print-sunrpc.c
index 529bf36a..8f1c9195 100644
--- a/print-sunrpc.c
+++ b/print-sunrpc.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-sunrpc.c,v 1.30 2000-01-17 06:24:26 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-sunrpc.c,v 1.31 2000-04-27 11:10:59 itojun Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -131,6 +131,6 @@ progstr(prog)
if (rp == NULL)
(void) snprintf(buf, sizeof(buf), "#%u", prog);
else
- strcpy(buf, rp->r_name);
+ strlcpy(buf, rp->r_name, sizeof(buf));
return (buf);
}