1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

30193: remnulargs() after poking into string in case length changes

This commit is contained in:
Bart Schaefer 2012-02-09 20:12:33 +00:00
parent 8e711e2abc
commit 3489c15799
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2012-02-09 Barton E. Schaefer <schaefer@zsh.org>
* 30193: ChangeLog Src/Zle/compcore.c: remnulargs() after poking
into string in case length changes.
2012-02-08 Peter Stephenson <pws@csr.com>
* Timothy Redaelli: 30187: Src/hist.c: file name manipulations
@ -15923,5 +15928,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5576 $
* $Revision: 1.5577 $
*****************************************************

View file

@ -2303,10 +2303,10 @@ addmatches(Cadata dat, char **argv)
strcpy(tmp + llpl + gfl + is, lsuf);
tokenize(tmp);
remnulargs(tmp);
if (haswilds(tmp)) {
if (is)
tmp[llpl + gfl] = Star;
remnulargs(tmp);
if ((cp = patcompile(tmp, 0, NULL)))
haspattern = 1;
}