aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2015-12-29 16:31:28 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2015-12-29 16:31:28 +0000
commit1e00885aec97a6999116f2b296a2910366ceeb93 (patch)
tree65e55edc7b69c9f4654564f847acfec23e884ecb
parentc64a3eaf92547367f5987d503172bc9c65487879 (diff)
Notes
-rw-r--r--bin/pax/pat_rep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pax/pat_rep.c b/bin/pax/pat_rep.c
index e8d17db363be..516519e208f0 100644
--- a/bin/pax/pat_rep.c
+++ b/bin/pax/pat_rep.c
@@ -878,7 +878,7 @@ rep_name(char *name, int *nlen, int prnt)
* (the user already saw that substitution go by)
*/
pt = rephead;
- (void)strcpy(buf1, name);
+ (void)strlcpy(buf1, name, sizeof(buf1));
inpt = buf1;
outpt = nname;
endpt = outpt + PAXPATHLEN;