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 432e0980bb8..cc735bb7f9b 100644 --- a/usr.bin/patch/util.c +++ b/usr.bin/patch/util.c @@ -1,7 +1,7 @@ -/* $OpenBSD: util.c,v 1.7 1999/12/04 01:01:07 provos Exp $ */ +/* $OpenBSD: util.c,v 1.8 1999/12/04 01:04:14 provos Exp $ */ #ifndef lint -static char rcsid[] = "$OpenBSD: util.c,v 1.7 1999/12/04 01:01:07 provos Exp $"; +static char rcsid[] = "$OpenBSD: util.c,v 1.8 1999/12/04 01:04:14 provos Exp $"; #endif /* not lint */ #include "EXTERN.h" @@ -361,7 +361,7 @@ bool striplast; if (stat(tmpbuf, &sbuf) && errno == ENOENT) { while (*s) s++; *s++ = ' '; - strlcpy(s, tmpbuf, strlen(s) + 1); + strcpy(s, tmpbuf); } *dirv[i] = '/'; } |