summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-05 19:42:33 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-05 19:42:33 -0400
commit908bed20cd877a6c0c290c0c56cc7057ecc00296 (patch)
treeb3132b0e3e857dbcbc45a09025bb9d0ebabd389a
parent3b94daba711090f1936f59fae6f7cbcba963b29e (diff)
downloadmusl-908bed20cd877a6c0c290c0c56cc7057ecc00296.tar.gz
fix ctype abi junk (pointer should point to 0 slot, not -128 slot)
-rw-r--r--src/ctype/__ctype_b_loc.c2
-rw-r--r--src/ctype/__ctype_tolower_loc.c2
-rw-r--r--src/ctype/__ctype_toupper_loc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ctype/__ctype_b_loc.c b/src/ctype/__ctype_b_loc.c
index a3927102..6e93dc07 100644
--- a/src/ctype/__ctype_b_loc.c
+++ b/src/ctype/__ctype_b_loc.c
@@ -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)
{
diff --git a/src/ctype/__ctype_tolower_loc.c b/src/ctype/__ctype_tolower_loc.c
index 446d08da..62ce69a6 100644
--- a/src/ctype/__ctype_tolower_loc.c
+++ b/src/ctype/__ctype_tolower_loc.c
@@ -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)
{
diff --git a/src/ctype/__ctype_toupper_loc.c b/src/ctype/__ctype_toupper_loc.c
index 5e23dda7..15561645 100644
--- a/src/ctype/__ctype_toupper_loc.c
+++ b/src/ctype/__ctype_toupper_loc.c
@@ -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)
{