diff options
Diffstat (limited to 'hotkey.c')
-rw-r--r-- | hotkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |