diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1999-12-04 01:04:15 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1999-12-04 01:04:15 +0000 |
commit | ee8c34246d4383a265b6f7c90b7673e1be27e94b (patch) | |
tree | 069d6fb3189d7bf6fccdc530ec462b2a6c327a50 /usr.bin/patch/util.c | |
parent | 37a56eed99073283673f4c65bf406c6c658c8068 (diff) |
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] = '/'; } |