From 05a3eadd653849fada63a5f87bcf4c4f46c64302 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Thu, 9 May 2013 17:34:12 +0200 Subject: [PATCH] WINGs: Fixed incorrect allocation size, missing room for '\0' --- WINGs/wfilepanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WINGs/wfilepanel.c b/WINGs/wfilepanel.c index 372683f3..9e8fdff0 100644 --- a/WINGs/wfilepanel.c +++ b/WINGs/wfilepanel.c @@ -589,7 +589,7 @@ static void showError(WMScreen * scr, WMWindow * owner, const char *s, const cha char *errStr; if (file) { - errStr = wmalloc(strlen(file) + strlen(s)); + errStr = wmalloc(strlen(file) + strlen(s) + 1); sprintf(errStr, s, file); } else { errStr = wstrdup(s); -- 2.11.4.GIT