Skip to content
Snippets Groups Projects
Commit b9c51d8b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix warning.

parent 842bd481
No related branches found
No related tags found
No related merge requests found
Pipeline #5815 passed
...@@ -1736,7 +1736,7 @@ x11_event(XEvent *ev) ...@@ -1736,7 +1736,7 @@ x11_event(XEvent *ev)
x11.XGetWindowProperty(dpy, win, ev->xselection.property, 0, bytes_left, True, AnyPropertyType, &pastebuf_format, &format, &len, &dummy, (unsigned char **)&pastebuf); x11.XGetWindowProperty(dpy, win, ev->xselection.property, 0, bytes_left, True, AnyPropertyType, &pastebuf_format, &format, &len, &dummy, (unsigned char **)&pastebuf);
if (!(A(UTF8_STRING) && pastebuf_format == A(UTF8_STRING))) { if (!(A(UTF8_STRING) && pastebuf_format == A(UTF8_STRING))) {
char *opb = pastebuf; char *opb = pastebuf;
pastebuf = (char *)cp_to_utf8(CIOLIB_ISO_8859_1, (uint8_t *)pastebuf, strlen(pastebuf), NULL); pastebuf = (char *)cp_to_utf8(CIOLIB_ISO_8859_1, pastebuf, strlen(pastebuf), NULL);
if (pastebuf == NULL) if (pastebuf == NULL)
pastebuf = opb; pastebuf = opb;
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment