fix ctype abi junk (pointer should point to 0 slot, not -128 slot)
authorRich Felker <dalias@aerifal.cx>
Tue, 5 Jun 2012 23:42:33 +0000 (19:42 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 5 Jun 2012 23:42:33 +0000 (19:42 -0400)
src/ctype/__ctype_b_loc.c
src/ctype/__ctype_tolower_loc.c
src/ctype/__ctype_toupper_loc.c

index a392710..6e93dc0 100644 (file)
@@ -34,7 +34,7 @@ X(0x8c6),X(0x8c6),X(0x8c6),X(0x4c0),X(0x4c0),X(0x4c0),X(0x4c0),X(0x200),
 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 unsigned short *const ptable = table;
+static const unsigned short *const ptable = table+128;
 
 const unsigned short **__ctype_b_loc(void)
 {
index 446d08d..62ce69a 100644 (file)
@@ -23,7 +23,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)
 {
index 5e23dda..1556164 100644 (file)
@@ -23,7 +23,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_toupper_loc(void)
 {