commit 77e359d8a4d9c4773354d9fa833b07d31d95420f
parent 712405513454f4928e17cafd5cd9f0c8622ab4fd
Author: Bastien Dejean <nihilhill@gmail.com>
Date: Mon, 19 Aug 2019 16:17:34 +0200
Fix GCC warnings
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/parse.c b/src/parse.c
@@ -2441,9 +2441,9 @@ void parse_event(xcb_generic_event_t *evt, uint8_t event_type, xcb_keysym_t *key
void process_hotkey(char *hotkey_string, char *command_string)
{
- char hotkey[MAXLEN] = {0};
+ char hotkey[2 * MAXLEN] = {0};
char command[2 * MAXLEN] = {0};
- char last_hotkey[MAXLEN] = {0};
+ char last_hotkey[2 * MAXLEN] = {0};
unsigned char num_same = 0;
chunk_t *hk_chunks = extract_chunks(hotkey_string);
chunk_t *cm_chunks = extract_chunks(command_string);