diff options
-rw-r--r-- | lib/libX11/src/UIThrStubs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libX11/src/UIThrStubs.c b/lib/libX11/src/UIThrStubs.c index 50da0e4c6..1786510ba 100644 --- a/lib/libX11/src/UIThrStubs.c +++ b/lib/libX11/src/UIThrStubs.c @@ -190,8 +190,8 @@ _Xthr_key_create_stub_(unsigned int *key, void (*destructor)(void *)) void **tmp; if ((_Xthr_last_key_ % XTHR_KEYS_CHUNK) == 0) { - tmp = recalloc(_Xthr_keys_, 1, - _Xthr_last_key_ + XTHR_KEYS_CHUNK*sizeof(void *)); + tmp = realloc(_Xthr_keys_, + (_Xthr_last_key_ + XTHR_KEYS_CHUNK)*sizeof(void *)); if (tmp == NULL) { free(_Xthr_keys_); return ENOMEM; |