mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue