summaryrefslogtreecommitdiff
path: root/deskutils/wmpinboard/files/patch-src__xmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/wmpinboard/files/patch-src__xmisc.c')
-rw-r--r--deskutils/wmpinboard/files/patch-src__xmisc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/deskutils/wmpinboard/files/patch-src__xmisc.c b/deskutils/wmpinboard/files/patch-src__xmisc.c
new file mode 100644
index 000000000000..e8e4582cf328
--- /dev/null
+++ b/deskutils/wmpinboard/files/patch-src__xmisc.c
@@ -0,0 +1,11 @@
+--- xmisc.c.orig Wed Apr 18 13:23:16 2001
++++ src/xmisc.c Wed Apr 18 13:23:22 2001
+@@ -298,7 +298,7 @@
+ if (cb_buffer) free(cb_buffer);
+ l = len < 0 ? strlen(text) : len;
+ cb_buffer = smalloc(l+1);
+- strncpy(cb_buffer, text, l);
++ strncpy((char *)cb_buffer, text, l);
+ cb_buffer[l] = 0;
+
+ XSetSelectionOwner(display, XA_PRIMARY, win, CurrentTime);