From: Kristian Høgsberg Date: Thu, 11 Nov 2004 15:37:01 +0000 (+0000) Subject: Fix #1818 X-Git-Tag: XORG-6_8_99_1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9145de293109ba96fc8b97ac59c16c51b992f416;p=platform%2Fupstream%2Fxmodmap.git Fix #1818 --- diff --git a/pf.c b/pf.c index 621fc55..99c20f7 100644 --- a/pf.c +++ b/pf.c @@ -89,7 +89,7 @@ void process_line (buffer) /* copy buffer since it may point to unwritable date */ len = strlen(buffer); - cp = chk_malloc(len); + cp = chk_malloc(len + 1); strcpy(cp, buffer); buffer = cp;