From 4930c313c79057d6ca014b277736130a9f718db5 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Sun, 8 May 2022 21:12:07 +0200 Subject: [PATCH] rand: fix a missing dereference Resolves: CID#257767 --- src/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rand.c b/src/rand.c index 7e4d5ae..1969a2c 100644 --- a/src/rand.c +++ b/src/rand.c @@ -69,7 +69,7 @@ int df_rand_load_external_dictionary(const char *filename) /* Extend the array if we're out of space */ if (i >= allocated) { allocated += 10; - array = realloc(array, sizeof(array) * allocated); + array = realloc(array, sizeof(*array) * allocated); if (!array) return df_oom(); }