Skip to content

Commit 727b2a5

Browse files
committed
1 parent a2b162d commit 727b2a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/chpst.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ int main(int argc, const char **argv) {
308308
case 'n':
309309
switch (*optarg) {
310310
case '-':
311-
if (optarg[scan_ulong(++optarg, &ul)]) usage(); nicelvl =ul;
311+
++optarg;
312+
if (optarg[scan_ulong(optarg, &ul)]) usage(); nicelvl =ul;
312313
nicelvl *=-1;
313314
break;
314315
case '+': ++optarg;

0 commit comments

Comments
 (0)