From: Eric Andersen Date: Fri, 8 Aug 2003 07:39:57 +0000 (-0000) Subject: Fix a stupid bug I introduced several months ago X-Git-Tag: 1_00_pre3~87 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6c0e0fb8ac74743232e73021741fb21c6047cc35;p=oweals%2Fbusybox.git Fix a stupid bug I introduced several months ago --- diff --git a/coreutils/printf.c b/coreutils/printf.c index 28f8aa45c..181c70bfb 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c @@ -411,7 +411,7 @@ static unsigned long xstrtoul(char *arg) assert(arg!=NULL); errno = 0; - result = strtoul(arg, &endptr, 10); + result = strtoul(arg, &endptr, 0); if (errno != 0 || *endptr!='\0' || endptr==arg) fprintf(stderr, "%s", arg); //errno = errno_save; @@ -427,7 +427,7 @@ static long xstrtol(char *arg) assert(arg!=NULL); errno = 0; - result = strtoul(arg, &endptr, 10); + result = strtoul(arg, &endptr, 0); if (errno != 0 || *endptr!='\0' || endptr==arg) fprintf(stderr, "%s", arg); //errno = errno_save;