projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dd: speed measurement. optional.
[oweals/busybox.git]
/
coreutils
/
printf.c
diff --git
a/coreutils/printf.c
b/coreutils/printf.c
index 5b326c643d3c863ac14ccbcfa6af86381952b4a6..eb53fa490690f4264c76c50045b606bca662bb74 100644
(file)
--- a/
coreutils/printf.c
+++ b/
coreutils/printf.c
@@
-152,6
+152,8
@@
static void print_direc(char *format, unsigned fmt_length,
if (have_width - 1 == have_prec)
have_width = NULL;
+ errno = 0;
+
switch (format[fmt_length - 1]) {
case 'c':
printf(format, *argument);