aboutsummaryrefslogtreecommitdiff
path: root/coreutils/printf.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-08 07:39:57 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-08 07:39:57 +0000
commit6c0e0fb8ac74743232e73021741fb21c6047cc35 (patch)
treef199ba677d160bd6c17dbcf4744df670bcb26cbd /coreutils/printf.c
parent3869f66eac8478a3c964ab23fccdd0d264f8bdd7 (diff)
downloadbusybox-w32-6c0e0fb8ac74743232e73021741fb21c6047cc35.tar.gz
busybox-w32-6c0e0fb8ac74743232e73021741fb21c6047cc35.tar.bz2
busybox-w32-6c0e0fb8ac74743232e73021741fb21c6047cc35.zip
Fix a stupid bug I introduced several months ago
Diffstat (limited to 'coreutils/printf.c')
-rw-r--r--coreutils/printf.c4
1 files changed, 2 insertions, 2 deletions
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)
411 assert(arg!=NULL); 411 assert(arg!=NULL);
412 412
413 errno = 0; 413 errno = 0;
414 result = strtoul(arg, &endptr, 10); 414 result = strtoul(arg, &endptr, 0);
415 if (errno != 0 || *endptr!='\0' || endptr==arg) 415 if (errno != 0 || *endptr!='\0' || endptr==arg)
416 fprintf(stderr, "%s", arg); 416 fprintf(stderr, "%s", arg);
417 //errno = errno_save; 417 //errno = errno_save;
@@ -427,7 +427,7 @@ static long xstrtol(char *arg)
427 assert(arg!=NULL); 427 assert(arg!=NULL);
428 428
429 errno = 0; 429 errno = 0;
430 result = strtoul(arg, &endptr, 10); 430 result = strtoul(arg, &endptr, 0);
431 if (errno != 0 || *endptr!='\0' || endptr==arg) 431 if (errno != 0 || *endptr!='\0' || endptr==arg)
432 fprintf(stderr, "%s", arg); 432 fprintf(stderr, "%s", arg);
433 //errno = errno_save; 433 //errno = errno_save;