mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +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:
committed by
Carlos R. Mafra
parent
3dce639aae
commit
de09ac5dad
@@ -602,7 +602,7 @@ static void loadConfigurations(WMScreen * scr, WMWindow * mainw)
|
|||||||
char *path;
|
char *path;
|
||||||
FILE *file;
|
FILE *file;
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
char mbuf[1024];
|
char mbuf[1069]; /* Size of buffer and extra characters for the sprintfs */
|
||||||
int v1, v2, v3;
|
int v1, v2, v3;
|
||||||
|
|
||||||
path = wdefaultspathfordomain("WindowMaker");
|
path = wdefaultspathfordomain("WindowMaker");
|
||||||
|
|||||||
Reference in New Issue
Block a user