diff options
author | Christopher Faylor <me@cgf.cx> | 2004-05-27 15:15:51 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-05-27 15:15:51 +0000 |
commit | 0512945eb5cfb23dde001cbb8875b04fcf3071b1 (patch) | |
tree | 588c729e67e1a0e957636b62cf25e3bf5990cbc8 /winsup/utils | |
parent | 3f611058b784531fb75fa47f1c980611b9cabc97 (diff) | |
download | newlib-0512945eb5cfb23dde001cbb8875b04fcf3071b1.zip newlib-0512945eb5cfb23dde001cbb8875b04fcf3071b1.tar.gz newlib-0512945eb5cfb23dde001cbb8875b04fcf3071b1.tar.bz2 |
* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling
strtosigno with NSIG - 1.
Diffstat (limited to 'winsup/utils')
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/kill.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index af668e7..93c2ff7 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2004-05-27 Christopher Faylor <cgf@alum.bu.edu> + + * kill.cc (listsig): NSIG includes Signal 0, so we need to avoid + calling strtosigno with NSIG - 1. + 2004-03-21 Christopher Faylor <cgf@redhat.com> * cygcheck.cc (dump_sysinfo): Remove "Win95/NT" from output. diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc index deb0b41..ba15a10 100644 --- a/winsup/utils/kill.cc +++ b/winsup/utils/kill.cc @@ -112,7 +112,7 @@ listsig (const char *in_sig) { int sig; if (!in_sig) - for (sig = 1; sig < NSIG; sig++) + for (sig = 1; sig < NSIG - 1; sig++) printf ("%s%c", strsigno (sig) + 3, (sig < NSIG - 1) ? ' ' : '\n'); else { |