[balsa/gtk4: 301/312] Port your module from g_memdup() to g_memdup2()




commit a8b7a027dba2ce9490bb9493d61100e5e1f20013
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]