summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-06-03 14:32:51 +0200
committerportix <none@none>2012-06-03 14:32:51 +0200
commitb868f492968ddd575174265f071393ce2a3d926a (patch)
treefac37e0ff1bcb892b477a4656ae52bceaf07357f /src
parent0986e19cc0db22c1da2d54875592e0eb442f99a9 (diff)
downloaddwb-b868f492968ddd575174265f071393ce2a3d926a.zip
Merging [PATCH] fix OOB memory writes (too small malloc)
Diffstat (limited to 'src')
-rw-r--r--src/dwb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dwb.c b/src/dwb.c
index 367acb5b..216c3f16 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -3725,7 +3725,7 @@ dwb_init_custom_keys(gboolean reload) {
continue;
current_line++;
- command = dwb_malloc(sizeof(command));
+ command = dwb_malloc(sizeof(CustomCommand));
command->key = dwb_malloc(sizeof(Key));
*(command->key) = dwb_str_to_key(keybuf->str);