backported fixes from 256boss
[bootcensus] / src / libc / ctype.c
index 76746dd..89e7b93 100644 (file)
@@ -69,5 +69,5 @@ int toupper(int c)
 
 int tolower(int c)
 {
-       return isupper(c) ? (c + ('A' - 'a')) : c;
+       return isupper(c) ? (c - ('A' - 'a')) : c;
 }