From: Dale Weiler Date: Fri, 21 Jun 2013 23:55:47 +0000 (+0000) Subject: Fix a sizeof bug X-Git-Tag: v0.3.0~91 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=a982d4e524e6cdfa1ba675df97a5d9e9f3d4c3ce Fix a sizeof bug --- diff --git a/stat.c b/stat.c index 3b54d6e..287ec0b 100644 --- a/stat.c +++ b/stat.c @@ -71,8 +71,8 @@ static stat_mem_block_t *stat_mem_block_root = NULL; */ static stat_size_table_t stat_size_new(void) { return (stat_size_table_t)memset( - mem_a(sizeof(stat_size_entry_t) * ST_SIZE), - 0, ST_SIZE * sizeof(stat_size_entry_t) + mem_a(sizeof(stat_size_entry_t*) * ST_SIZE), + 0, ST_SIZE * sizeof(stat_size_entry_t*) ); }