diff options
author | Louie Shprung <lshprung@tutanota.com> | 2024-08-16 16:39:39 -0400 |
---|---|---|
committer | Louie Shprung <lshprung@tutanota.com> | 2024-08-16 16:39:39 -0400 |
commit | 002e6c5aac88cc931b838884f9ad21348f2f5641 (patch) | |
tree | b8bc09483e96e96993ed049295c3089f6922a28a /src/draw.c | |
parent | 9adae33d5ffa4a72771266ba127f9ccc9b4b5221 (diff) |
Fix potential group allocation index incrementation issue
Diffstat (limited to 'src/draw.c')
-rw-r--r-- | src/draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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){ |