From b868f492968ddd575174265f071393ce2a3d926a Mon Sep 17 00:00:00 2001 From: portix Date: Sun, 3 Jun 2012 14:32:51 +0200 Subject: Merging [PATCH] fix OOB memory writes (too small malloc) --- src/dwb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3