diff options
-rw-r--r-- | src/chpst.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chpst.c b/src/chpst.c index 86032bc..d65e8fd 100644 --- a/src/chpst.c +++ b/src/chpst.c @@ -308,7 +308,8 @@ int main(int argc, char **argv) { case 'n': switch (*optarg) { case '-': - if (optarg[scan_ulong(++optarg, &ul)]) usage(); nicelvl =ul; + ++optarg; + if (optarg[scan_ulong(optarg, &ul)]) usage(); nicelvl =ul; nicelvl *=-1; break; case '+': ++optarg; |