[balsa/gtk4: 285/294] Port your module from g_memdup() to g_memdup2()




commit 9f2fc6e56ff5aa0e8991fae4d40c4299e6502abd
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]