diff options
-rw-r--r-- | src/blogc-runserver/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blogc-runserver/main.c b/src/blogc-runserver/main.c index 7f83f42..3b6f2c2 100644 --- a/src/blogc-runserver/main.c +++ b/src/blogc-runserver/main.c @@ -89,7 +89,7 @@ main(int argc, char **argv) ptr = argv[i] + 2; else ptr = argv[++i]; - max_threads = strtoul(argv[++i], NULL, 10); + max_threads = strtoul(ptr, &endptr, 10); if (*ptr != '\0' && *endptr != '\0') fprintf(stderr, "blogc-runserver: warning: invalid value " "for -m argument: %s. using %zu instead\n", ptr, max_threads); |