mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 08:46:41 +08:00
fix debug option
This commit is contained in:
parent
ed95193efe
commit
31e24c9426
@ -410,9 +410,9 @@ char **process_options(int argc, char **argv)
|
||||
usage_debug();
|
||||
exit(0);
|
||||
}
|
||||
options.debug = strtoul(optarg, &p, 8);
|
||||
options.debug = strtoul(optarg, &p, 0);
|
||||
if (*p) {
|
||||
fprintf(stderr, "%s: --debug requires an octal argument\n", progname);
|
||||
fprintf(stderr, "%s: --debug requires an numeric argument\n", progname);
|
||||
err_usage();
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user