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 | 36509: allocate hash table nodes with zshcalloc() to avoid garbage flag values (diff) | |
| download | zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.gz zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.bz2 zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.lz zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.xz zsh-8e77fcb050ed09042cc2464f804ac023c0f88b42.tar.zst 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
@@ -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"); |
