fix debug option

This commit is contained in:
Stefani Seibold 2018-04-18 08:48:20 +02:00
parent ed95193efe
commit 31e24c9426

View File

@ -410,9 +410,9 @@ char **process_options(int argc, char **argv)
usage_debug(); usage_debug();
exit(0); exit(0);
} }
options.debug = strtoul(optarg, &p, 8); options.debug = strtoul(optarg, &p, 0);
if (*p) { if (*p) {
fprintf(stderr, "%s: --debug requires an octal argument\n", progname); fprintf(stderr, "%s: --debug requires an numeric argument\n", progname);
err_usage(); err_usage();
} }
#endif #endif