frontend/com_alias.c, asubst(), bug fix
wl_word can not be incremented, this is a pointer to malloc'ed space and will eventually be free'ed
This commit is contained in:
parent
41c0ee45a2
commit
121a46f9cb
|
|
@ -24,7 +24,8 @@ asubst(wordlist *wlist)
|
|||
|
||||
word = wlist->wl_word;
|
||||
if (*word == '\\') {
|
||||
wlist->wl_word++; /* FIXME !!!, free() will fail !!! */
|
||||
while ((word[0] = word[1]) != '\0')
|
||||
word++;
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue