1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

WPrefs.c Removed format-overflow warning

This patch adds some characters to the mbuf buffer, to allow the buffer size and some extra characters.

WPrefs.c: In function ‘loadConfigurations’:
../src/wconfig.h:400:17: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1018 [-Wformat-overflow=]

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix)
2019-06-19 21:11:07 +02:00
committed by Carlos R. Mafra
parent 3dce639aae
commit de09ac5dad

View File

@@ -602,7 +602,7 @@ static void loadConfigurations(WMScreen * scr, WMWindow * mainw)
char *path;
FILE *file;
char buffer[1024];
char mbuf[1024];
char mbuf[1069]; /* Size of buffer and extra characters for the sprintfs */
int v1, v2, v3;
path = wdefaultspathfordomain("WindowMaker");