aboutsummaryrefslogtreecommitdiff
path: root/hotkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'hotkey.c')
-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);