kill: fix bad signal specifier check

This commit is contained in:
K. Lange 2020-12-21 10:07:23 +09:00
parent 545425ce36
commit 03d580fb7e

View File

@ -94,7 +94,7 @@ int main(int argc, char * argv[]) {
s++; s++;
} }
} else { } else {
if (!isdigit(argv[1][1] < '0')) { if (!isdigit(argv[1][1])) {
struct sig_def * s = signals; struct sig_def * s = signals;
while (s->name) { while (s->name) {
if (!strcmp(argv[1]+1,s->name)) { if (!strcmp(argv[1]+1,s->name)) {