diff options
author | Calvin Morrison <calvin@pobox.com> | 2023-07-27 21:02:12 -0400 |
---|---|---|
committer | Calvin Morrison <calvin@pobox.com> | 2023-07-27 21:02:12 -0400 |
commit | 150335ea5dbab277dd1421af7e69d3d6047b8668 (patch) | |
tree | 2f95a0c844ec1831812b5ee521e46c5765deb3f5 /hotkey.c | |
parent | dc0222175d99a7b156c6047e6988e8805bb2e14d (diff) |
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); |