From: Christophe CURIS <[email protected]>

---
 WINGs/wfilepanel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/WINGs/wfilepanel.c b/WINGs/wfilepanel.c
index 372683f..9e8fdff 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);
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to