[gnome-remote-desktop] clipboard-vnc: Use correct macro to retrieve the mime type
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] clipboard-vnc: Use correct macro to retrieve the mime type
- Date: Thu, 18 Feb 2021 16:50:57 +0000 (UTC)
commit 8c95e881fb5e9ac475cfeb7c5a4781e1cfbed84a
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Sun Feb 7 16:54:44 2021 +0100
clipboard-vnc: Use correct macro to retrieve the mime type
While implementing the VNC clipboard, GPOINTER_TO_INT was accidentally
used instead of GPOINTER_TO_UINT to retrieve the mime type.
Fix this by replacing the GPOINTER_TO_INT macro with the
GPOINTER_TO_UINT macro.
src/grd-clipboard-vnc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/grd-clipboard-vnc.c b/src/grd-clipboard-vnc.c
index a5400a3..263a607 100644
--- a/src/grd-clipboard-vnc.c
+++ b/src/grd-clipboard-vnc.c
@@ -75,7 +75,7 @@ grd_clipboard_vnc_update_client_mime_type_list (GrdClipboard *clipboard,
for (l = mime_type_list; l && !found_utf8_string; l = l->next)
{
- mime_type = GPOINTER_TO_INT (l->data);
+ mime_type = GPOINTER_TO_UINT (l->data);
switch (mime_type)
{
case GRD_MIME_TYPE_TEXT_PLAIN:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]