diff options
author | Peter Stephenson <pws@zsh.org> | 2016-10-19 10:39:58 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-10-19 10:39:58 +0100 |
commit | 7e7e2d7e63b52a6a2e990090954328bbf7fa5d80 (patch) | |
tree | b9d1ce1f43e2ad5c98c7b4ddfaa0e2ee63fe32c0 /Src/builtin.c | |
parent | 5b192a4cd1fafde42fcbc9b19cee40885705880e (diff) | |
download | zsh-7e7e2d7e63b52a6a2e990090954328bbf7fa5d80.tar.gz zsh-7e7e2d7e63b52a6a2e990090954328bbf7fa5d80.tar.xz zsh-7e7e2d7e63b52a6a2e990090954328bbf7fa5d80.zip |
39678: metafication of printf %q argument and result
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 8b8b217d8..2db739ffc 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -4874,9 +4874,10 @@ bin_print(char *name, char **args, Options ops, int func) break; case 'q': stringval = curarg ? - quotestring(curarg, QT_BACKSLASH_SHOWNULL) : &nullstr; + quotestring(metafy(curarg, curlen, META_USEHEAP), + QT_BACKSLASH_SHOWNULL) : &nullstr; *d = 's'; - print_val(stringval); + print_val(unmetafy(stringval, &curlen)); break; case 'd': case 'i': |