Skip to content

Commit

Permalink
rand: fix a missing dereference
Browse files Browse the repository at this point in the history
Resolves: CID#257767
  • Loading branch information
mrc0mmand authored and evverx committed May 8, 2022
1 parent ed8b9fa commit 4930c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4930c31

Please sign in to comment.