ports/misc/wmtunlo/files/patch-docklib.c
Danilo G. Baio dcb160dd6a misc/wmtunlo: Fix build on head
PR:		249390
Submitted by:	jd.fbsd@goneja.de
Event:		September 2020 Bugathon
2020-09-19 15:28:00 +00:00

19 lines
502 B
C

--- docklib.c.orig 2020-09-17 11:16:57 UTC
+++ docklib.c
@@ -300,6 +300,7 @@ execCommand(char *command)
/*****************/
Window Root;
+Display *display;
int screen;
int x_fd;
int d_depth;
@@ -713,7 +714,7 @@ char text[MAX_LINE_LEN];
p_strcpy (text, "# ", MAX_LINE_LEN);
p_strcat (text, comment, MAX_LINE_LEN);
- fprintf (prefs_filehandle, text);
+ fprintf (prefs_filehandle, "%s", text);
}
/*---------------------------------------------------------------------------*/