X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=inline;f=coreutils%2Fprintf.c;h=eb53fa490690f4264c76c50045b606bca662bb74;hb=4e5b07b0fed4be34ab3b22666e2a68e7ec2738d8;hp=5b326c643d3c863ac14ccbcfa6af86381952b4a6;hpb=bf4aeed129ba7518be04ab9e53073bdb737a24b8;p=oweals%2Fbusybox.git diff --git a/coreutils/printf.c b/coreutils/printf.c index 5b326c643..eb53fa490 100644 --- 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);