summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'create.c')
-rw-r--r--create.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/create.c b/create.c
index a0b8d02..6119198 100644
--- a/create.c
+++ b/create.c
@@ -22,7 +22,12 @@ STDCALL _pthread_start_call(void * us_arg)
this thread's private stack so we're safe to leave data in them
until we leave. */
pthread_t us;
- void * keys[PTHREAD_KEYS_MAX];
+
+ /* FIXME: Needs to be a malloc(PTHREAD_KEYS_MAX) otherwise changing
+ _PTHREAD_MAX_KEYS in a later version of the DLL will break older apps.
+ */
+ void * keys[_PTHREAD_MAX_KEYS];
+
unsigned (*func)(void *);
void * arg;
unsigned ret;