diff options
author | mux <mux@FreeBSD.org> | 2005-03-06 03:19:19 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2005-03-06 03:19:19 +0000 |
commit | 91ab1502acdccf9d505921ce96e50fe33fdcb48a (patch) | |
tree | 50f4b7c28c55bc57d5f4cc0c7a186eb9d86b98a0 /lib/libc/string/strsignal.c | |
parent | 062f662fe278c9446b719d13d73d55acefeb1ff3 (diff) | |
download | FreeBSD-src-91ab1502acdccf9d505921ce96e50fe33fdcb48a.zip FreeBSD-src-91ab1502acdccf9d505921ce96e50fe33fdcb48a.tar.gz |
Unbreak strsignal(). This is an MFC candidate.
Reported by: Sean McNeil <sean@mcneil.com>
Diffstat (limited to 'lib/libc/string/strsignal.c')
-rw-r--r-- | lib/libc/string/strsignal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/string/strsignal.c b/lib/libc/string/strsignal.c index 82e2804..11efb07 100644 --- a/lib/libc/string/strsignal.c +++ b/lib/libc/string/strsignal.c @@ -54,7 +54,8 @@ strsignal(int num) { static char ebuf[NL_TEXTMAX]; char tmp[20]; - int signum, n; + size_t n; + int signum; char *t, *p; #if defined(NLS) @@ -64,7 +65,7 @@ strsignal(int num) #endif if (num > 0 && num < sys_nsig) { - strlcpy(ebuf, + n = strlcpy(ebuf, #if defined(NLS) catgets(catd, 2, num, sys_siglist[num]), #else |