Browse Source

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
pre-master-46
rlar 8 years ago
parent
commit
121a46f9cb
  1. 3
      src/frontend/com_alias.c

3
src/frontend/com_alias.c

@ -24,7 +24,8 @@ asubst(wordlist *wlist)
word = wlist->wl_word; word = wlist->wl_word;
if (*word == '\\') { if (*word == '\\') {
wlist->wl_word++; /* FIXME !!!, free() will fail !!! */
while ((word[0] = word[1]) != '\0')
word++;
return (NULL); return (NULL);
} }

Loading…
Cancel
Save