add busybox printf patch from #2021
[openwrt/openwrt.git] / package / busybox / patches / 280-printf.patch
1 Index: busybox-1.4.2/coreutils/printf.c
2 ===================================================================
3 --- busybox-1.4.2.orig/coreutils/printf.c 2007-07-09 03:00:31.808788500 +0200
4 +++ busybox-1.4.2/coreutils/printf.c 2007-07-09 03:00:42.257441500 +0200
5 @@ -60,11 +60,11 @@
6
7 static void conv_strtoul(char *arg, void *result)
8 {
9 - *(unsigned long*)result = bb_strtoul(arg, NULL, 10);
10 + *(unsigned long*)result = bb_strtoul(arg, NULL, 0);
11 }
12 static void conv_strtol(char *arg, void *result)
13 {
14 - *(long*)result = bb_strtol(arg, NULL, 10);
15 + *(long*)result = bb_strtol(arg, NULL, 0);
16 }
17 static void conv_strtod(char *arg, void *result)
18 {