summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index 74a2a41..999739b 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1377,7 +1377,7 @@ friendload(void)
uint32_t i;
sz = tox_count_friendlist(tox);
- frnums = malloc(sz);
+ frnums = malloc(sz * sizeof(*frnums));
if (!frnums)
eprintf("malloc:");