diff options
Diffstat (limited to 'src/globals.c')
-rw-r--r-- | src/globals.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/globals.c b/src/globals.c index 7446bca..f056103 100644 --- a/src/globals.c +++ b/src/globals.c @@ -95,7 +95,7 @@ x_export_selection (void) if (XGetSelectionOwner(dpy, XA_PRIMARY) != screens[0].key_window) PRINT_ERROR(("can't get primary selection")); XChangeProperty(dpy, screens[0].root, XA_CUT_BUFFER0, XA_STRING, 8, - PropModeReplace, selection.text, selection.len); + PropModeReplace, (unsigned char*)selection.text, selection.len); } void @@ -172,7 +172,7 @@ get_primary_selection(void) continue; /* Accumulate the data. FIXME: ct.value may not be NULL terminated. */ - sbuf_nconcat (s, ct.value, ct.nitems); + sbuf_nconcat (s, (const char*)ct.value, ct.nitems); XFree(ct.value); } return sbuf_free_struct (s); |