mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-21 14:47:04 +01:00
WINGs: Fixed incorrect allocation size, missing room for '\0'
This commit is contained in:
1 parent
a4395c5764
commit
05a3eadd65
1 file changed
+1
-1
+1
-1
@@ -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