[client] use variable-relative sizeof where possible

This commit is contained in:
Tudor Brindus
2021-08-15 12:18:22 -04:00
committed by Geoffrey McRae
parent 1c5620ba25
commit 14ad83c6b8
14 changed files with 25 additions and 25 deletions

View File

@@ -198,7 +198,7 @@ struct LG_OverlayOps LGOverlayGraphs =
GraphHandle overlayGraph_register(const char * name, RingBuffer buffer, float min, float max)
{
struct OverlayGraph * graph = malloc(sizeof(struct OverlayGraph));
struct OverlayGraph * graph = malloc(sizeof(*graph));
graph->name = name;
graph->buffer = buffer;
graph->enabled = true;