From 31e24c94268d3cbd24dd208dbf3bc7a827ce7e31 Mon Sep 17 00:00:00 2001 From: Stefani Seibold Date: Wed, 18 Apr 2018 08:48:20 +0200 Subject: [PATCH] fix debug option --- options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/options.c b/options.c index 5b92cdf..acf2ece 100644 --- a/options.c +++ b/options.c @@ -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