about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped32/wrappedlibc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c
index c58037eb..d1c392e0 100755
--- a/src/wrapped32/wrappedlibc.c
+++ b/src/wrapped32/wrappedlibc.c
@@ -2488,12 +2488,12 @@ static void ctSetup()
 #else
 static void ctSetup()
 {
-    memcpy(my32_toupper, *__ctype_b_loc()-128*sizeof(short), 384*sizeof(short));
-    my32___ctype_b = to_ptrv(&my32_ctype[128]);
-    memcpy(my32_toupper, *__ctype_toupper_loc()-128*sizeof(int), 384*sizeof(int));
-    my32___ctype_toupper = to_ptrv(&my32_toupper[128]);
-    memcpy(my32_tolower, *__ctype_tolower_loc()-128*sizeof(int), 384*sizeof(int));
-    my32___ctype_tolower = to_ptrv(&my32_tolower[128]);
+    memcpy(my32_ctype, &((*__ctype_b_loc())[-128]), 384*sizeof(short));
+    my32___ctype_b = to_ptrv(my32_ctype+128);
+    memcpy(my32_toupper, &((*__ctype_toupper_loc())[-128]), 384*sizeof(int));
+    my32___ctype_toupper = to_ptrv(my32_toupper+128);
+    memcpy(my32_tolower, &((*__ctype_tolower_loc())[-128]), 384*sizeof(int));
+    my32___ctype_tolower = to_ptrv(my32_tolower+128);
 }
 #endif