summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chpst.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chpst.c b/chpst.c
index 8de213f..1c3073f 100644
--- a/chpst.c
+++ b/chpst.c
@@ -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;