libgimpwidgets: fix #11255 unterminated Wayland window ID string

Copy the NULL when creating GBytes from a string.
This commit is contained in:
bootchk 2024-04-09 06:51:43 -04:00 committed by Jehan
parent 5b5a8f58e4
commit 4048556171
1 changed files with 1 additions and 1 deletions

View File

@ -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;