Fix a stupid bug I introduced several months ago

This commit is contained in:
Eric Andersen 2003-08-08 07:39:57 +00:00
parent 3869f66eac
commit 6c0e0fb8ac

View File

@ -411,7 +411,7 @@ static unsigned long xstrtoul(char *arg)
assert(arg!=NULL); assert(arg!=NULL);
errno = 0; errno = 0;
result = strtoul(arg, &endptr, 10); result = strtoul(arg, &endptr, 0);
if (errno != 0 || *endptr!='\0' || endptr==arg) if (errno != 0 || *endptr!='\0' || endptr==arg)
fprintf(stderr, "%s", arg); fprintf(stderr, "%s", arg);
//errno = errno_save; //errno = errno_save;
@ -427,7 +427,7 @@ static long xstrtol(char *arg)
assert(arg!=NULL); assert(arg!=NULL);
errno = 0; errno = 0;
result = strtoul(arg, &endptr, 10); result = strtoul(arg, &endptr, 0);
if (errno != 0 || *endptr!='\0' || endptr==arg) if (errno != 0 || *endptr!='\0' || endptr==arg)
fprintf(stderr, "%s", arg); fprintf(stderr, "%s", arg);
//errno = errno_save; //errno = errno_save;