diff options
Diffstat (limited to 'newlib/libc/ctype/iswalpha.c')
-rw-r--r-- | newlib/libc/ctype/iswalpha.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/ctype/iswalpha.c b/newlib/libc/ctype/iswalpha.c index 71f0e4a4b..16d424086 100644 --- a/newlib/libc/ctype/iswalpha.c +++ b/newlib/libc/ctype/iswalpha.c @@ -415,7 +415,7 @@ _DEFUN(iswalpha,(c), wint_t c) /* otherwise c > *ptr */ /* look for 0x0 as next element which indicates a range */ ++ptr; - if (ptr < table + size - 1 && *ptr == 0x0) + if (*ptr == 0x0) { /* we have a range..see if c falls within range */ ++ptr; |