diff options
Diffstat (limited to 'usr.bin/patch/util.c')
-rw-r--r-- | usr.bin/patch/util.c | 6 |
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); |