Skip to content

Commit 4930c31

Browse files
mrc0mmandevverx
authored andcommitted
rand: fix a missing dereference
Resolves: CID#257767
1 parent ed8b9fa commit 4930c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ int df_rand_load_external_dictionary(const char *filename)
6969
/* Extend the array if we're out of space */
7070
if (i >= allocated) {
7171
allocated += 10;
72-
array = realloc(array, sizeof(array) * allocated);
72+
array = realloc(array, sizeof(*array) * allocated);
7373
if (!array)
7474
return df_oom();
7575
}

0 commit comments

Comments
 (0)