[gtk/ebassi/memdup2: 7/11] gsk: Move from g_memdup() to g_memdup2()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/memdup2: 7/11] gsk: Move from g_memdup() to g_memdup2()
- Date: Thu, 4 Feb 2021 19:48:13 +0000 (UTC)
commit 8d198f97bab2e30cce249dbc8a3f28578bf4b9f1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Feb 4 19:16:39 2021 +0000
gsk: Move from g_memdup() to g_memdup2()
The g_memdup() function is replaced by a safer version in newer versions
of GLib.
gsk/gskrendernodeimpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index f932c38185..d75ec86328 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -1746,7 +1746,7 @@ draw_shadow_corner (cairo_t *cr,
cairo_fill (mask_cr);
gsk_cairo_blur_surface (mask, radius, GSK_BLUR_X | GSK_BLUR_Y);
cairo_destroy (mask_cr);
- g_hash_table_insert (corner_mask_cache, g_memdup (&key, sizeof (key)), mask);
+ g_hash_table_insert (corner_mask_cache, g_memdup2 (&key, sizeof (key)), mask);
}
gdk_cairo_set_source_rgba (cr, color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]