提交 caee0a31 authored 作者: William King's avatar William King 提交者: Michael Jerris

CID: 1294434 fixing a sizeof statement that was working for so long because on…

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
上级 4f468b14
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论