diff options
author | Oliver Kiddle <opk@zsh.org> | 2015-05-14 22:56:24 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2015-05-14 22:56:24 +0200 |
commit | 63ffbab84d5071bea0fdb2c8b16368283ec75253 (patch) | |
tree | b82f89e00d40378243b581fbeaa09fd6857fb51c /Src | |
parent | 55716ea3370cfc3be3d31f89b017cbb8e5b9dbd4 (diff) | |
download | zsh-63ffbab84d5071bea0fdb2c8b16368283ec75253.tar.gz zsh-63ffbab84d5071bea0fdb2c8b16368283ec75253.tar.xz zsh-63ffbab84d5071bea0fdb2c8b16368283ec75253.zip |
Øystein Walle: 34841 (tweaked): allow grouping of thousands in printf format string
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 18dad7491..dbcd02206 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3770,9 +3770,9 @@ bin_print(char *name, char **args, Options ops, int func) { int flen, width, prec, type, argc, n, narg, curlen = 0; int nnl = 0, fmttrunc = 0, ret = 0, maxarg = 0, nc = 0; - int flags[5], *len; - char *start, *endptr, *c, *d, *flag, *buf = NULL, spec[13], *fmt = NULL; - char **first, **argp, *curarg, *flagch = "0+- #", save = '\0', nullstr = '\0'; + int flags[6], *len; + char *start, *endptr, *c, *d, *flag, *buf = NULL, spec[14], *fmt = NULL; + char **first, **argp, *curarg, *flagch = "'0+- #", save = '\0', nullstr = '\0'; size_t rcount, count = 0; #ifdef HAVE_OPEN_MEMSTREAM size_t mcount; |