diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2015-09-12 16:13:01 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-09-12 16:13:01 -0700 |
commit | 8e77fcb050ed09042cc2464f804ac023c0f88b42 (patch) | |
tree | d6215495fdbae83c181adda6b6bb7b2661dbfe16 | |
parent | 6ff0628182ac74bbf22dc02edcc9a148f12767db (diff) | |
download | zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.gz zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.xz zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.zip |
36522: unmetafy the argument of "zle -U"
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Src/Zle/zle_thingy.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 3aa4f208a..1ce47d7f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2015-09-12 Barton E. Schaefer <schaefer@zsh.org> + * 36522: Src/Zle/zle_thingy.c: unmetafy the argument of "zle -U" + * 36509: Src/Modules/curses.c: allocate hash table nodes with zshcalloc() to avoid garbage flag values diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c index 7fd3a5941..da3a6d458 100644 --- a/Src/Zle/zle_thingy.c +++ b/Src/Zle/zle_thingy.c @@ -466,7 +466,7 @@ bin_zle_mesg(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) static int bin_zle_unget(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) { - char *b = *args, *p = b + strlen(b); + char *b = unmeta(*args), *p = b + strlen(b); if (!zleactive) { zwarnnam(name, "can only be called from widget function"); |