about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-06-07 23:07:26 +0200
committerOliver Kiddle <opk@zsh.org>2015-06-07 23:07:26 +0200
commitac26fafa03c30e8c79e4bd70bdbb68d025643ee7 (patch)
tree02c2080f79f7ec2e5b7f6048020e9e4d95a2bc3e /Src/builtin.c
parenta253ada08b43fafa25d6af2cc3c0bf248df50970 (diff)
downloadzsh-ac26fafa03c30e8c79e4bd70bdbb68d025643ee7.tar.gz
zsh-ac26fafa03c30e8c79e4bd70bdbb68d025643ee7.tar.xz
zsh-ac26fafa03c30e8c79e4bd70bdbb68d025643ee7.zip
35412: fix for - flag when formating strings with printf
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
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);