mirror of https://github.com/GNOME/gimp.git
libgimpwidgets: fix #11255 unterminated Wayland window ID string
Copy the NULL when creating GBytes from a string.
This commit is contained in:
parent
5b5a8f58e4
commit
4048556171
|
@ -1195,7 +1195,7 @@ gimp_widget_wayland_window_exported (GdkWindow *window,
|
|||
{
|
||||
GBytes *wayland_handle;
|
||||
|
||||
wayland_handle = g_bytes_new (handle, strlen (handle));
|
||||
wayland_handle = g_bytes_new (handle, strlen (handle) + 1);
|
||||
|
||||
g_bytes_unref (*phandle);
|
||||
*phandle = wayland_handle;
|
||||
|
|
Loading…
Reference in New Issue