WindowMaker/WindowMaker-crash.patch
OBS User autobuild 59351d6e18 Accepting request 35085 from X11:windowmanagers
Copy from X11:windowmanagers/WindowMaker based on submit request 35085 from user coolo

OBS-URL: https://build.opensuse.org/request/show/35085
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/WindowMaker?expand=0&rev=14
2010-03-19 08:16:42 +00:00

12 lines
297 B
Diff

--- src/misc.c
+++ src/misc.c
@@ -1105,7 +1105,7 @@
len = (msg ? strlen(msg) : 0) + (workspace >=0 ? 4 : 0) + 1 ;
buffer = wmalloc(len+5);
- snprintf(buf, len, "%4i", len);
+ snprintf(buf, sizeof(buf), "%4i", len);
memcpy(buffer, buf, 4);
buffer[4] = type;
i = 5;