diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-11 19:27:56 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-17 22:03:24 +0200 |
commit | 8a849bc85a1d59ffc77e6bff1aa3da2d4bcd746c (patch) | |
tree | 6c9b11a31534d493ead2ce107fb927421a9696df /IncSet.c | |
parent | 1f5bd5c4c84c53915bcdd68398e77269fe26328c (diff) |
Call character checking function with unsigned char
See https://wiki.sei.cmu.edu/confluence/display/c/STR37-C.+Arguments+to+character-handling+functions+must+be+representable+as+an+unsigned+char
Diffstat (limited to 'IncSet.c')
-rw-r--r-- | IncSet.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -137,7 +137,7 @@ bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue if (size == 0) return true; IncMode_find(mode, panel, getPanelValue, 1); doSearch = false; - } else if (ch < 255 && isprint((char)ch)) { + } else if (0 < ch && ch < 255 && isprint((unsigned char)ch)) { if (mode->index < INCMODE_MAX) { mode->buffer[mode->index] = ch; mode->index++; |