1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

WINGs: Fixed incorrect allocation size, missing room for '\0'

This commit is contained in:
Christophe CURIS
2013-05-09 17:34:12 +02:00
committed by Carlos R. Mafra
parent a4395c5764
commit 05a3eadd65

View File

@@ -589,7 +589,7 @@ static void showError(WMScreen * scr, WMWindow * owner, const char *s, const cha
char *errStr; char *errStr;
if (file) { if (file) {
errStr = wmalloc(strlen(file) + strlen(s)); errStr = wmalloc(strlen(file) + strlen(s) + 1);
sprintf(errStr, s, file); sprintf(errStr, s, file);
} else { } else {
errStr = wstrdup(s); errStr = wstrdup(s);