diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2021-03-14 14:56:39 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2021-03-14 14:56:39 +0200 |
commit | c9805c2d74ba81c261737f17e90d9365d025a2f4 (patch) | |
tree | ca9371b110a6b2fc38c71901a09bc6008aad74a5 | |
parent | 4b1dec08ce8acfe43ecc8185515b88df1d7c8699 (diff) | |
download | metacity-c9805c2d74ba81c261737f17e90d9365d025a2f4.tar.gz |
core: use g_memdup2
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/core/screen.c | 2 | ||||
-rw-r--r-- | src/core/window-props.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 6f1c78ee..6defc8b4 100644 --- a/configure.ac +++ b/configure.ac @@ -89,7 +89,7 @@ dnl ************************************************************************** dnl Check for required packages dnl ************************************************************************** -GLIB_REQUIRED_VERSION=2.44.0 +GLIB_REQUIRED_VERSION=2.67.3 GTK_REQUIRED_VERSION=3.22.0 PANGO_REQUIRED_VERSION=1.2.0 XCOMPOSITE_REQUIRED_VERSION=0.3 diff --git a/src/core/screen.c b/src/core/screen.c index 760ead44..ff8b5525 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -596,7 +596,7 @@ meta_screen_manage_all_windows (MetaScreen *screen) meta_stack_tracker_get_stack (screen->stack_tracker, &windows, &n_windows); /* Copy the stack as it will be modified as part of the loop */ - xwindows = g_memdup (windows, sizeof (Window) * n_windows); + xwindows = g_memdup2 (windows, sizeof (Window) * n_windows); for (i = 0; i < n_windows; i++) { diff --git a/src/core/window-props.c b/src/core/window-props.c index bc5e235e..a6ad2b03 100644 --- a/src/core/window-props.c +++ b/src/core/window-props.c @@ -1939,7 +1939,7 @@ meta_display_init_window_prop_hooks (MetaDisplay *display) }, }; - MetaWindowPropHooks *table = g_memdup (hooks, sizeof (hooks)), + MetaWindowPropHooks *table = g_memdup2 (hooks, sizeof (hooks)), *cursor = table; g_assert (display->prop_hooks == NULL); |