diff options
-rw-r--r-- | chpst.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -309,7 +309,8 @@ int main(int argc, char **argv) { | |||
309 | case 'n': | 309 | case 'n': |
310 | switch (*optarg) { | 310 | switch (*optarg) { |
311 | case '-': | 311 | case '-': |
312 | if (optarg[scan_ulong(++optarg, &ul)]) usage(); | 312 | ++optarg; |
313 | if (optarg[scan_ulong(optarg, &ul)]) usage(); | ||
313 | nicelvl =ul; | 314 | nicelvl =ul; |
314 | nicelvl *=-1; | 315 | nicelvl *=-1; |
315 | break; | 316 | break; |