From 150335ea5dbab277dd1421af7e69d3d6047b8668 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Thu, 27 Jul 2023 21:02:12 -0400 Subject: yeah we should proably malloc that right --- hotkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotkey.c b/hotkey.c index 4deda6b..2c5b915 100644 --- a/hotkey.c +++ b/hotkey.c @@ -17,7 +17,7 @@ typedef struct Key { // A horrible hack. struct Key * parse_key(char *shortcut, char *command) { - Key *key = malloc(sizeof(key)); + Key *key = malloc(sizeof(struct Key)); if(key == NULL) { fprintf(stderr, "could not allocate keys\n"); exit(EXIT_FAILURE); -- cgit v1.2.1