diff options
| author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2018-03-24 15:17:37 +0900 |
|---|---|---|
| committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2018-03-24 15:22:10 +0900 |
| commit | e4a8069b329cacd6486f831bb55273f8253295b2 (patch) | |
| tree | d51fcb821d4111c527a31ede8bcb34371d7cc487 /Src/Zle/computil.c | |
| parent | 42491 based on 42000 (Andrei Shevchuk): factor ssh host completion for use fo... (diff) | |
| download | zsh-e4a8069b329cacd6486f831bb55273f8253295b2.tar zsh-e4a8069b329cacd6486f831bb55273f8253295b2.tar.gz zsh-e4a8069b329cacd6486f831bb55273f8253295b2.tar.bz2 zsh-e4a8069b329cacd6486f831bb55273f8253295b2.tar.lz zsh-e4a8069b329cacd6486f831bb55273f8253295b2.tar.xz zsh-e4a8069b329cacd6486f831bb55273f8253295b2.tar.zst zsh-e4a8069b329cacd6486f831bb55273f8253295b2.zip | |
42501: avoid out of bound pointer (as 42487)
Diffstat (limited to 'Src/Zle/computil.c')
| -rw-r--r-- | Src/Zle/computil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 0b1ba58dc..4ce8eeee5 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1222,7 +1222,7 @@ parse_cadef(char *nam, char **args) else if (*p == 'A') { if (p[1]) { nonarg = p + 1; - p = "" - 1; + p += strlen(p+1); } else if (args[1]) nonarg = *++args; else @@ -1230,7 +1230,7 @@ parse_cadef(char *nam, char **args) } else if (*p == 'M') { if (p[1]) { match = p + 1; - p = "" - 1; + p += strlen(p+1); } else if (args[1]) match = *++args; else |
