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

This commit is contained in:
William King 2015-04-16 11:48:04 -07:00 committed by Michael Jerris
parent 4f468b14e9
commit caee0a3119
1 changed files with 1 additions and 1 deletions

View File

@ -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);