mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
WINGs: Fixed incorrect allocation size, missing room for '\0'
This commit is contained in:
committed by
Carlos R. Mafra
parent
a4395c5764
commit
05a3eadd65
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user