From: Tomasz Golinski Date: Mon, 15 May 2023 22:40:13 +0000 (+0200) Subject: Protect another g_memdup2 in exif.cc with ifdef X-Git-Tag: v2.1~51 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=67fbca5694ff1007626860a2b2e152a40777728b Protect another g_memdup2 in exif.cc with ifdef --- diff --git a/src/exif.cc b/src/exif.cc index 044d4bc0..72eb389d 100644 --- a/src/exif.cc +++ b/src/exif.cc @@ -584,7 +584,11 @@ gchar *exif_item_get_data(ExifItem *item, guint *data_len) { if (data_len) *data_len = item->data_len; +#if GLIB_CHECK_VERSION(2,68,0) return (gchar*)g_memdup2((gpointer)(item->data), item->data_len); +#else + return (gchar*)g_memdup((gpointer)(item->data), item->data_len); +#endif } guint exif_item_get_format_id(ExifItem *item)