[balsa/gtk4: 309/314] Port your module from g_memdup() to g_memdup2()




commit 9354e543ee6ac23168edd2baa33cd2ec850a1c34
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 8ce8839a7..ba6475e7a 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]