From ac26fafa03c30e8c79e4bd70bdbb68d025643ee7 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Sun, 7 Jun 2015 23:07:26 +0200 Subject: 35412: fix for - flag when formating strings with printf --- Src/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 643b8c61a..a3d847f41 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -4518,7 +4518,7 @@ bin_print(char *name, char **args, Options ops, int func) lleft -= chars; ptr += chars; } - if (width > 0 && flags[2]) width = -width; + if (width > 0 && flags[3]) width = -width; if (width > 0 && lchars < width) count += fprintf(fout, "%*c", width - lchars, ' '); count += fwrite(b, 1, lbytes, fout); -- cgit v1.2.3