Skip to content

Commit

Permalink
libvncclient: cast buf when calling GotXCutTextUTF8()
Browse files Browse the repository at this point in the history
buf is an unsigned char pointer while GotXCutTextUTF8() takes a char
pointer.
  • Loading branch information
tobydox committed Feb 17, 2023
1 parent 0645de9 commit c0796c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libvncclient/rfbclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,7 @@ rfbClientProcessExtServerCutText(rfbClient* client, char *data, int len)
return FALSE;
}
if (client->GotXCutTextUTF8)
client->GotXCutTextUTF8(client, buf, size);
client->GotXCutTextUTF8(client, (char *)buf, size);
free(buf);

inflateEnd(&stream);
Expand Down

0 comments on commit c0796c6

Please sign in to comment.