Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-27 19:15:51 +0400
committerChristopher Faylor <me@cgf.cx>2004-05-27 19:15:51 +0400
commit0512945eb5cfb23dde001cbb8875b04fcf3071b1 (patch)
tree588c729e67e1a0e957636b62cf25e3bf5990cbc8 /winsup/utils/kill.cc
parent3f611058b784531fb75fa47f1c980611b9cabc97 (diff)
* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling
strtosigno with NSIG - 1.
Diffstat (limited to 'winsup/utils/kill.cc')
-rw-r--r--winsup/utils/kill.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc
index deb0b41a3..ba15a1067 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
{