From caee0a3119834cd35c4d59bff160d2a9f0d624f5 Mon Sep 17 00:00:00 2001 From: William King Date: Thu, 16 Apr 2015 11:48:04 -0700 Subject: [PATCH] CID: 1294434 fixing a sizeof statement that was working for so long because on 64bit boxes the pointer size would be 64bits and the uint8_t was expecting at least 32 --- src/switch_core_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_hash.c b/src/switch_core_hash.c index 728cbdc877..cdec290942 100644 --- a/src/switch_core_hash.c +++ b/src/switch_core_hash.c @@ -253,7 +253,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_inthash_insert(switch_inthash_t *has { uint32_t *k = NULL; - switch_zmalloc(k, sizeof(k)); + switch_zmalloc(k, sizeof(*k)); *k = key; switch_hashtable_insert_destructor(hash, k, (void *)data, HASHTABLE_FLAG_FREE_KEY | HASHTABLE_DUP_CHECK, NULL);