summaryrefslogtreecommitdiff
path: root/src/draw.c
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-08-16 16:39:39 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-08-16 16:39:39 -0400
commit002e6c5aac88cc931b838884f9ad21348f2f5641 (patch)
treeb8bc09483e96e96993ed049295c3089f6922a28a /src/draw.c
parent9adae33d5ffa4a72771266ba127f9ccc9b4b5221 (diff)
Fix potential group allocation index incrementation issue
Diffstat (limited to 'src/draw.c')
-rw-r--r--src/draw.c2
1 files changed, 1 insertions, 1 deletions
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){