From 756bea5ffa96d32c58be7fb731cd73e32d5672e3 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 8 Aug 2005 23:06:20 +0000 Subject: Fixed a recently-introduced bug where printf %b with an empty arg would output a single space instead of nothing. --- 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 b17b6d4aa..de1cb68e4 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3774,7 +3774,7 @@ bin_print(char *name, char **args, Options ops, int func) flen = c - fmt + 1; fmttrunc = 1; } - } else + } else if (width) count += fprintf(fout, "%*c", width, ' '); break; case 'q': -- cgit 1.4.1