diff options
author | 1999-12-04 01:04:14 +0000 | |
---|---|---|
committer | 1999-12-04 01:04:14 +0000 | |
commit | eab5e9905fd4d9c06857558d406c02325474e05d (patch) | |
tree | 988261c23a36f116e5d60dd95d1e8a15a600aa97 /usr.bin/patch/util.c | |
parent | avoid overflows (diff) | |
download | wireguard-openbsd-eab5e9905fd4d9c06857558d406c02325474e05d.tar.xz wireguard-openbsd-eab5e9905fd4d9c06857558d406c02325474e05d.zip |
revert strlcpy to strcpy for one case.
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] = '/'; } |