[almanah/gmemdup-deprecated] Updated deprecated g_memdup to g_memdup2
- From: Álvaro Peña <alvaropg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah/gmemdup-deprecated] Updated deprecated g_memdup to g_memdup2
- Date: Sat, 16 Oct 2021 10:11:42 +0000 (UTC)
commit ba4d02034ec9c8ae5a6b440dbe3fc9f7e90aa9e6
Author: Álvaro Peña <alvaropg gmail com>
Date: Sat Oct 16 12:10:39 2021 +0200
Updated deprecated g_memdup to g_memdup2
meson.build | 2 +-
src/printing.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index ff5dc65..813e67b 100644
--- a/meson.build
+++ b/meson.build
@@ -26,7 +26,7 @@ schemadir = join_paths(datadir, 'glib-2.0', 'schemas')
convertdir = join_paths(datadir, 'GConf', 'gsettings')
# Dependencies
-glib = dependency('glib-2.0', version: '>= 2.62')
+glib = dependency('glib-2.0', version: '>= 2.68')
gtk = dependency('gtk+-3.0', version: '>= 3.15')
gmodule = dependency('gmodule-2.0')
gthread = dependency('gthread-2.0')
diff --git a/src/printing.c b/src/printing.c
index 692a338..8591742 100644
--- a/src/printing.c
+++ b/src/printing.c
@@ -542,7 +542,7 @@ almanah_print_entries (gboolean print_preview, GtkWindow *parent_window, GtkPage
almanah_operation.end_date = g_date_new ();
g_date_set_time_t (almanah_operation.end_date, time (NULL));
- almanah_operation.current_date = g_memdup (almanah_operation.start_date, sizeof
(*(almanah_operation.start_date)));
+ almanah_operation.current_date = g_memdup2 (almanah_operation.start_date, sizeof
(*(almanah_operation.start_date)));
if (*print_settings != NULL)
gtk_print_operation_set_print_settings (operation, *print_settings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]