summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkselectionoutputstream-x11.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-12 21:29:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-12 21:31:19 -0400
commitc66f2ca9eb76b8a8dca14d2dc37416436b7fbfe1 (patch)
tree8e3e636a98875ebb1f91637d27c2c8281aec31c3 /gdk/x11/gdkselectionoutputstream-x11.c
parent9c13bf70a722ec733121055a4e70770e6dc5156c (diff)
downloadgtk+-c66f2ca9eb76b8a8dca14d2dc37416436b7fbfe1.tar.gz
x11: Avoid a critical in clipboard data transfer
The handler we are calling here asserts that it gets an interned string as mime_type. So give it one. Fixes: #2736
Diffstat (limited to 'gdk/x11/gdkselectionoutputstream-x11.c')
-rw-r--r--gdk/x11/gdkselectionoutputstream-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/x11/gdkselectionoutputstream-x11.c b/gdk/x11/gdkselectionoutputstream-x11.c
index cfacb13ac5..bdd4c57d08 100644
--- a/gdk/x11/gdkselectionoutputstream-x11.c
+++ b/gdk/x11/gdkselectionoutputstream-x11.c
@@ -892,7 +892,7 @@ gdk_x11_selection_output_streams_request (GdkDisplay *display,
target,
8,
timestamp);
- handler (stream, target, user_data);
+ handler (stream, mime_type, user_data);
return TRUE;
}
}