summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/actions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c
index 875c235..4fcd0e4 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -452,7 +452,7 @@ cmd_bind (int interactive, void *data)
return NULL;
}
- keydesc = (char*) xmalloc (strlen (data + 1));
+ keydesc = (char*) xmalloc (strlen (data) + 1);
sscanf (data, "%s", keydesc);
cmd = data + strlen (keydesc);
@@ -506,7 +506,7 @@ cmd_unbind (int interactive, void *data)
return NULL;
}
- keydesc = (char*) xmalloc (strlen (data + 1));
+ keydesc = (char*) xmalloc (strlen (data) + 1);
sscanf (data, "%s", keydesc);
key = parse_keydesc (keydesc);