From: William King Date: Thu, 16 Apr 2015 18:48:04 +0000 (-0700) Subject: CID: 1294434 fixing a sizeof statement that was working for so long because on 64bit... X-Git-Tag: v1.6.2~614^2~160 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=caee0a3119834cd35c4d59bff160d2a9f0d624f5;p=thirdparty%2Ffreeswitch.git 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 --- 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);