getservbyport_r: fix wrong result if getnameinfo fails with EAI_OVERFLOW
[musl] / src / ctype / __ctype_tolower_loc.c
index 446d08d..efb9910 100644 (file)
@@ -1,5 +1,4 @@
-#include <ctype.h>
-#include <inttypes.h>
+#include <stdint.h>
 
 static const int32_t table[] = {
 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
@@ -23,7 +22,7 @@ static const int32_t table[] = {
 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
 };
 
-static const int32_t *const ptable = table;
+static const int32_t *const ptable = table+128;
 
 const int32_t **__ctype_tolower_loc(void)
 {