chiark / gitweb /
[PATCH] fix bug in klibc's isspace function.
[elogind.git] / klibc / klibc / include / ctype.h
index 2cb90a45d37f5b965d3c70b2a77fa3835f4dc619..e1a25f3693fb41d2ccea983f06444910720dacf5 100644 (file)
@@ -88,7 +88,7 @@ __ctype_inline int ispunct(int __c)
 
 __ctype_inline int isspace(int __c)
 {
-  return __ctypes[__c+1] & __ctype_space;
+  return __ctypes[__c] & __ctype_space;
 }
 
 __ctype_inline int isupper(int __c)