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:
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;
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user