summaryrefslogtreecommitdiff
path: root/recipes/busybox/busybox-1.13.2/busybox-1.13.2-printf.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-04-14 10:29:06 +0200
committerKoen Kooi <koen@openembedded.org>2009-04-14 10:29:06 +0200
commit56fe494547aba6d67973a8e1e3c21fe7a7501dc0 (patch)
tree38fa4c450feccea8991e1908f30e6c755e5b7069 /recipes/busybox/busybox-1.13.2/busybox-1.13.2-printf.patch
parent01be9642c5a554f8da700f59c6fd5d81c3a66003 (diff)
parent0bc69c83a40eea87f0e47feb96910193b351c8e5 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/busybox/busybox-1.13.2/busybox-1.13.2-printf.patch')
-rw-r--r--recipes/busybox/busybox-1.13.2/busybox-1.13.2-printf.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/busybox/busybox-1.13.2/busybox-1.13.2-printf.patch b/recipes/busybox/busybox-1.13.2/busybox-1.13.2-printf.patch
new file mode 100644
index 0000000000..281d457065
--- /dev/null
+++ b/recipes/busybox/busybox-1.13.2/busybox-1.13.2-printf.patch
@@ -0,0 +1,21 @@
+diff -urpN busybox-1.13.2/coreutils/printf.c busybox-1.13.2-printf/coreutils/printf.c
+--- busybox-1.13.2/coreutils/printf.c 2008-12-31 04:06:45.000000000 +0100
++++ busybox-1.13.2-printf/coreutils/printf.c 2009-03-03 15:13:12.000000000 +0100
+@@ -139,14 +139,14 @@ static void print_direc(char *format, un
+ char saved;
+ char *have_prec, *have_width;
+
++ saved = format[fmt_length];
++ format[fmt_length] = '\0';
++
+ have_prec = strstr(format, ".*");
+ have_width = strchr(format, '*');
+ if (have_width - 1 == have_prec)
+ have_width = NULL;
+
+- saved = format[fmt_length];
+- format[fmt_length] = '\0';
+-
+ switch (format[fmt_length - 1]) {
+ case 'c':
+ printf(format, *argument);