[BusyBox-cvs] busybox/coreutils printf.c,1.19,1.20

Erik Andersen andersen at busybox.net
Fri Aug 8 07:40:01 UTC 2003


Update of /var/cvs/busybox/coreutils
In directory winder:/tmp/cvs-serv17435/coreutils

Modified Files:
	printf.c 
Log Message:
Fix a stupid bug I introduced several months ago


Index: printf.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/printf.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- printf.c	26 May 2003 18:09:14 -0000	1.19
+++ printf.c	8 Aug 2003 07:39:57 -0000	1.20
@@ -411,7 +411,7 @@
 	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 @@
 	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;




More information about the busybox-cvs mailing list