summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/util.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-04-05 17:17:53 +0000
committerderaadt <deraadt@openbsd.org>2003-04-05 17:17:53 +0000
commit1f7e104bfc8b45091d63639f00b06131ee5e7ef1 (patch)
treedb54e30a1e93e2f3130877092c72886188a4f267 /usr.bin/patch/util.c
parentsnprintf; ok miod ho henning (diff)
downloadwireguard-openbsd-1f7e104bfc8b45091d63639f00b06131ee5e7ef1.tar.xz
wireguard-openbsd-1f7e104bfc8b45091d63639f00b06131ee5e7ef1.zip
string fixes; ok miod henning
Diffstat (limited to 'usr.bin/patch/util.c')
-rw-r--r--usr.bin/patch/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/util.c b/usr.bin/patch/util.c
index 4ddb1a7cb98..0a68f19deda 100644
--- a/usr.bin/patch/util.c
+++ b/usr.bin/patch/util.c
@@ -1,7 +1,7 @@
-/* $OpenBSD: util.c,v 1.9 1999/12/04 21:00:03 provos Exp $ */
+/* $OpenBSD: util.c,v 1.10 2003/04/05 17:17:53 deraadt Exp $ */
#ifndef lint
-static char rcsid[] = "$OpenBSD: util.c,v 1.9 1999/12/04 21:00:03 provos Exp $";
+static char rcsid[] = "$OpenBSD: util.c,v 1.10 2003/04/05 17:17:53 deraadt Exp $";
#endif /* not lint */
#include "EXTERN.h"
@@ -340,7 +340,7 @@ bool striplast;
*s = '\0';
}
- strcpy(buf, "/bin/mkdir -p ");
+ strlcpy(buf, "/bin/mkdir -p ", sizeof buf);
if (strlcat(buf, tmpbuf, sizeof(buf)) >= sizeof(buf))
fatal2("buffer too small to hold %.20s...\n", tmpbuf);