Use correct size with calloc.
This commit is contained in:
parent
0e47ad02fe
commit
43f42b6439
|
@ -514,7 +514,7 @@ static bool input_overlay_load_overlay(input_overlay_t *ol, config_file_t *conf,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Precache load image array for simplicity.
|
// Precache load image array for simplicity.
|
||||||
overlay->load_images = (struct video_overlay_image*)calloc(1 + overlay->size, sizeof(struct overlay_desc));
|
overlay->load_images = (struct video_overlay_image*)calloc(1 + overlay->size, sizeof(struct video_overlay_image));
|
||||||
if (!overlay->load_images)
|
if (!overlay->load_images)
|
||||||
{
|
{
|
||||||
RARCH_ERR("[Overlay]: Failed to allocate load_images.\n");
|
RARCH_ERR("[Overlay]: Failed to allocate load_images.\n");
|
||||||
|
|
Loading…
Reference in New Issue