diff options
author | 2003-03-13 15:47:33 +0000 | |
---|---|---|
committer | 2003-03-13 15:47:33 +0000 | |
commit | 2deed5ed93379baa224251f819b6084608088f66 (patch) | |
tree | da4ea0b072822374c0eee378054adaa1f1e8e2ef /lib/libc/string/__strsignal.c | |
parent | a few more strlcpy (diff) | |
download | wireguard-openbsd-2deed5ed93379baa224251f819b6084608088f66.tar.xz wireguard-openbsd-2deed5ed93379baa224251f819b6084608088f66.zip |
a few more strlcy; ok from beck & ho
Diffstat (limited to 'lib/libc/string/__strsignal.c')
-rw-r--r-- | lib/libc/string/__strsignal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/__strsignal.c b/lib/libc/string/__strsignal.c index 4ca5bad3c0f..26168722326 100644 --- a/lib/libc/string/__strsignal.c +++ b/lib/libc/string/__strsignal.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: __strsignal.c,v 1.6 2001/06/27 00:58:56 lebel Exp $"; +static char *rcsid = "$OpenBSD: __strsignal.c,v 1.7 2003/03/13 15:47:33 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #ifdef NLS @@ -89,9 +89,9 @@ __strsignal(num, buf) #ifdef NLS strlcpy(buf, catgets(catd, 1, 0xffff, UPREFIX), NL_TEXTMAX); #else - strcpy(buf, UPREFIX); + strlcpy(buf, UPREFIX, NL_TEXTMAX); #endif - strncat(buf, itoa(signum), NL_TEXTMAX-strlen(buf)-1); + strlcat(buf, itoa(signum), NL_TEXTMAX); } #ifdef NLS |