summaryrefslogtreecommitdiff
path: root/usr.bin/rdist/expand.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-05 20:31:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-05 20:31:59 +0000
commita30a19e6bb8e1cd59f6c8994d4be6856c7f06209 (patch)
tree75b9e4bf6b5fa6143d827012d0e0f8e8ec615832 /usr.bin/rdist/expand.c
parentd3a24c7fdcc3cdc9bdd398b0050e46b32597dcdf (diff)
strings; ok miod ho krw
Diffstat (limited to 'usr.bin/rdist/expand.c')
-rw-r--r--usr.bin/rdist/expand.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/rdist/expand.c b/usr.bin/rdist/expand.c
index cc6155e53e1..1eade9335aa 100644
--- a/usr.bin/rdist/expand.c
+++ b/usr.bin/rdist/expand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expand.c,v 1.7 2001/11/19 19:02:15 mpech Exp $ */
+/* $OpenBSD: expand.c,v 1.8 2003/04/05 20:31:58 deraadt Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -39,7 +39,7 @@ static char RCSid[] =
"$From: expand.c,v 6.18 1998/03/24 00:37:10 michaelc Exp $";
#else
static char RCSid[] =
-"$OpenBSD: expand.c,v 1.7 2001/11/19 19:02:15 mpech Exp $";
+"$OpenBSD: expand.c,v 1.8 2003/04/05 20:31:58 deraadt Exp $";
#endif
static char sccsid[] = "@(#)expand.c 5.2 (Berkeley) 3/28/86";
@@ -479,7 +479,8 @@ doit:
savec = *pm;
*pm = 0;
(void) strcpy((char *)lm, (char *)pl);
- (void) strcat((char *)restbuf, (char *)pe + 1);
+ (void) strlcat((char *)restbuf, (char *)pe + 1,
+ sizeof restbuf);
*pm = savec;
if (s == 0) {
spathp = pathp;