From 85f03dbe7f12f70b25577a38028bfd5095d2b354 Mon Sep 17 00:00:00 2001 From: andersen Date: Fri, 8 Aug 2003 07:39:57 +0000 Subject: Fix a stupid bug I introduced several months ago git-svn-id: svn://busybox.net/trunk/busybox@7181 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/printf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils/printf.c') 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; -- cgit v1.2.3-55-g6feb