59351d6e18
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
12 lines
297 B
Diff
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;
|