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:
rlar 2018-02-17 15:14:56 +01:00
parent 41c0ee45a2
commit 121a46f9cb
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}