[gnome-flashback] notifications: use g_memdup2
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] notifications: use g_memdup2
- Date: Sun, 14 Mar 2021 13:57:03 +0000 (UTC)
commit 153d1dacb2e9242525c0f33d412fb38cfeae6e46
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 15:49:30 2021 +0200
notifications: use g_memdup2
gnome-flashback/libnotifications/nd-notification.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-flashback/libnotifications/nd-notification.c
b/gnome-flashback/libnotifications/nd-notification.c
index e406bfb..77b5255 100644
--- a/gnome-flashback/libnotifications/nd-notification.c
+++ b/gnome-flashback/libnotifications/nd-notification.c
@@ -237,8 +237,8 @@ icon_from_data (GVariant *icon_data)
return NULL;
}
- data = (guchar *) g_memdup (g_variant_get_data (data_variant),
- g_variant_get_size (data_variant));
+ data = g_memdup2 (g_variant_get_data (data_variant),
+ g_variant_get_size (data_variant));
pixbuf = gdk_pixbuf_new_from_data (data,
GDK_COLORSPACE_RGB,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]