aboutsummaryrefslogblamecommitdiff
path: root/deskutils/wmpinboard/files/patch-src__xmisc.c
blob: e8e4582cf328998e5c03f26b264ef7bfe35de264 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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);