From 002e6c5aac88cc931b838884f9ad21348f2f5641 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Fri, 16 Aug 2024 16:39:39 -0400 Subject: Fix potential group allocation index incrementation issue --- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/draw.c') diff --git a/src/draw.c b/src/draw.c index 99b1a74..91476e3 100644 --- a/src/draw.c +++ b/src/draw.c @@ -214,7 +214,7 @@ bool *handle_args(int argc, char **argv, char **cfg_path){ {"version", no_argument, NULL, 'v'}, {0, 0, 0, 0} }; - bool *flags_set = calloc(FLAG_COUNT, sizeof(bool)); + bool *flags_set = calloc(FLAG_COUNT+1, sizeof(bool)); int i = 0; while(opt != -1){ -- cgit