[balsa/gtk4: 296/311] Port your module from g_memdup() to g_memdup2()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 296/311] Port your module from g_memdup() to g_memdup2()
- Date: Fri, 17 Dec 2021 19:54:28 +0000 (UTC)
commit a9980663d707c3330f4718a5dca2cf9ea5ffdce6
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu Feb 4 19:15:46 2021 -0500
Port your module from g_memdup() to g_memdup2()
https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538
modified: libbalsa/mailbox_mbox.c
libbalsa/mailbox_mbox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index ff442a046..90adad298 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -495,7 +495,7 @@ parse_mailbox(LibBalsaMailboxMbox * mbox)
continue;
msg_info.local_info.flags = msg_info.orig_flags;
-#if GLIB_CHECK_VERSION(2, 68, 0)
+#if GLIB_CHECK_VERSION(2, 67, 3)
g_ptr_array_add(mbox->msgno_2_msg_info, g_memdup2(&msg_info, sizeof(msg_info)));
#else
g_ptr_array_add(mbox->msgno_2_msg_info, g_memdup(&msg_info, sizeof(msg_info)));
@@ -583,7 +583,7 @@ lbm_mbox_restore(LibBalsaMailboxMbox * mbox)
&& !lbm_mbox_seek_to_message(mbox, msg_info->end))
/* Error: no message following this one. */
break;
-#if GLIB_CHECK_VERSION(2, 68, 0)
+#if GLIB_CHECK_VERSION(2, 67, 3)
g_ptr_array_add(mbox->msgno_2_msg_info, g_memdup2(msg_info, sizeof *msg_info));
#else
g_ptr_array_add(mbox->msgno_2_msg_info, g_memdup(msg_info, sizeof *msg_info));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]