summaryrefslogtreecommitdiffstats
path: root/AvailableColumnsPanel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-11 19:27:56 +0200
committercgzones <cgzones@googlemail.com>2020-09-17 22:03:24 +0200
commit8a849bc85a1d59ffc77e6bff1aa3da2d4bcd746c (patch)
tree6c9b11a31534d493ead2ce107fb927421a9696df /AvailableColumnsPanel.c
parent1f5bd5c4c84c53915bcdd68398e77269fe26328c (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 'AvailableColumnsPanel.c')
-rw-r--r--AvailableColumnsPanel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/AvailableColumnsPanel.c b/AvailableColumnsPanel.c
index 8aedde24..0d9749e7 100644
--- a/AvailableColumnsPanel.c
+++ b/AvailableColumnsPanel.c
@@ -45,7 +45,7 @@ static HandlerResult AvailableColumnsPanel_eventHandler(Panel* super, int ch) {
}
default:
{
- if (ch < 255 && isalpha(ch))
+ if (0 < ch && ch < 255 && isalpha((unsigned char)ch))
result = Panel_selectByTyping(super, ch);
break;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy