]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix a sizeof bug
authorDale Weiler <killfieldengine@gmail.com>
Fri, 21 Jun 2013 23:55:47 +0000 (23:55 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 21 Jun 2013 23:55:47 +0000 (23:55 +0000)
stat.c

diff --git a/stat.c b/stat.c
index 3b54d6e494f63f4cc23db2ca79afc75bdcd717fc..287ec0bf583721cd4e2a980d385ded02180963bd 100644 (file)
--- 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*)
     );
 }