aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2023-07-27 21:02:12 -0400
committerCalvin Morrison <calvin@pobox.com>2023-07-27 21:02:12 -0400
commit150335ea5dbab277dd1421af7e69d3d6047b8668 (patch)
tree2f95a0c844ec1831812b5ee521e46c5765deb3f5
parentdc0222175d99a7b156c6047e6988e8805bb2e14d (diff)
yeah we should proably malloc that rightHEADmaster
-rw-r--r--hotkey.c2
1 files changed, 1 insertions, 1 deletions
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);