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 a39271023ef93edd99682e026705ac6f14e5936f..6e93dc07d3bfdb01cd9e20f3471c0306fd1d584f 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 446d08dabf11f0b48ffe6f23830a6cf32632fb75..62ce69a63bdae9d608e98bc01d5f5db4b19526b8 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 5e23dda7f74661a00fe7ab2d984044ed85367c18..1556164570fdfc8ef4fe50dc1a66699f1dff01eb 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)
 {