Fix a bug with one-long words in minish-eval
commit3db87a0671c3a53e7d44f9e518b9395973319eb2
authorff <_ff@tuta.io>
Tue, 19 Dec 2017 12:26:38 +0000 (19 13:26 +0100)
committerff <_ff@tuta.io>
Wed, 20 Dec 2017 18:45:27 +0000 (20 19:45 +0100)
treea37d38b689807b5ef744e5416fba4feec3f69139
parent28c9f2de4e87070dbc2703863a5f5192d9f37358
Fix a bug with one-long words in minish-eval

minish-eval assumed that getdelim() returning 1 meant an empty string,
thinking the one character read was the delimiter,
but it actually can be another character.
Fix this by making read_word() add 1 to the size
if the last character read is not the delimiter.
Devember/log19.txt [new file with mode: 0644]
src/minish-eval.c
src/words.h