diff options
author | Philippe Brochard <hocwp@free.fr> | 2010-12-04 16:22:18 +0100 |
---|---|---|
committer | Philippe Brochard <hocwp@free.fr> | 2010-12-04 16:22:18 +0100 |
commit | ec0b1d484283903a493571b746c15ef890e59399 (patch) | |
tree | 6339cc6663426d2c7f61d2fe5632015eaa99a497 | |
parent | cab23997a98d238915071f5b975fdcb2c2bba369 (diff) | |
download | xbindkeys-ec0b1d484283903a493571b746c15ef890e59399.tar.gz |
Fix a memory fault
-rw-r--r-- | xbindkeys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbindkeys.c b/xbindkeys.c index 2f6ad5a..074ed26 100644 --- a/xbindkeys.c +++ b/xbindkeys.c @@ -201,7 +201,7 @@ static void adjust_display (XAnyEvent * xany) { size_t envstr_size = strlen(DisplayString(xany->display)) + 8 + 1; - char* envstr = malloc (envstr_size); + char* envstr = malloc (envstr_size+2); XWindowAttributes attr; char* ptr; char buf[16]; |