strsignal(): Do not append signal numbers to messages for known signals.

Messages for known signals looked like "Terminated: 15" instead of
"Terminated".
This commit is contained in:
Jilles Tjoelker 2012-09-19 19:21:22 +00:00
parent 303d68bc4f
commit b8d472d710

View File

@ -120,7 +120,6 @@ strsignal(int num)
UPREFIX,
#endif
sizeof(sig_ebuf));
}
signum = num;
if (num < 0)
@ -143,6 +142,7 @@ strsignal(int num)
break;
}
*p = '\0';
}
#if defined(NLS)
catclose(catd);