summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorEric Andersen2003-08-08 07:39:57 +0000
committerEric Andersen2003-08-08 07:39:57 +0000
commit6c0e0fb8ac74743232e73021741fb21c6047cc35 (patch)
treef199ba677d160bd6c17dbcf4744df670bcb26cbd /coreutils
parent3869f66eac8478a3c964ab23fccdd0d264f8bdd7 (diff)
downloadbusybox-6c0e0fb8ac74743232e73021741fb21c6047cc35.zip
busybox-6c0e0fb8ac74743232e73021741fb21c6047cc35.tar.gz
Fix a stupid bug I introduced several months ago
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c
index 28f8aa4..181c70b 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;