diff options
Diffstat (limited to 'src/ctype/iscntrl.c')
-rw-r--r-- | src/ctype/iscntrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctype/iscntrl.c b/src/ctype/iscntrl.c index 4c733b2c..83c52e1c 100644 --- a/src/ctype/iscntrl.c +++ b/src/ctype/iscntrl.c @@ -10,7 +10,7 @@ int iscntrl(int c) ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); - return map[c] & CT_CNTRL; + return c == EOF ? 0 : map[c] & CT_CNTRL; } /*** |