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