diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 21:39:37 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 21:39:37 +0100 |
commit | 5359e0ca10669b08eebd1beaaa2e9fb05cf9ac52 (patch) | |
tree | 91628727ecd1f4f9b8598680ee3b387f55293148 | |
parent | 80a798da64d6595e542b5e826e42a5cbfba2b871 (diff) | |
download | blogc-5359e0ca10669b08eebd1beaaa2e9fb05cf9ac52.tar.gz blogc-5359e0ca10669b08eebd1beaaa2e9fb05cf9ac52.tar.bz2 blogc-5359e0ca10669b08eebd1beaaa2e9fb05cf9ac52.zip |
runserver: fixed bug when calling with -m
-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); |