Fix signed error.

This commit is contained in:
Roy Marples 2009-09-04 13:24:26 +01:00
parent 807e5d7250
commit 2ea1df634e

View File

@ -166,7 +166,7 @@ parse_signal(const char *sig)
return -1;
if (sscanf(sig, "%u", &i) == 1) {
if (i >= 0 && i < NSIG)
if (i < NSIG)
return i;
eerrorx("%s: `%s' is not a valid signal", applet, sig);
}