diff options
-rw-r--r-- | coreutils/printf.c | 4 |
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; |