* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling

strtosigno with NSIG - 1.
This commit is contained in:
Christopher Faylor
2004-05-27 15:15:51 +00:00
parent 3f611058b7
commit 0512945eb5
2 changed files with 6 additions and 1 deletions

View File

@ -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
{