diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-10 06:37:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-10 06:37:55 -0700 |
commit | 0f55e4b727694c0c926ef0979f11b438edccc675 (patch) | |
tree | f88afc3adb24bb4411a17c397ab9d2e74359e41f /txr.c | |
parent | 2860d81328d3a966a1c3a1df013b51404ecc71b9 (diff) | |
download | txr-0f55e4b727694c0c926ef0979f11b438edccc675.tar.gz txr-0f55e4b727694c0c926ef0979f11b438edccc675.tar.bz2 txr-0f55e4b727694c0c926ef0979f11b438edccc675.zip |
Don't pass char to <ctype.h> function.
* parser.c (provide_completions): Cast char argument to
unsigned char in call to isalnum. The data comes from
user input, which could be any byte. The char type may be
signed (and usually is) and so may take on negative values.
Diffstat (limited to 'txr.c')
0 files changed, 0 insertions, 0 deletions