[Commits] [SCM] claws branch, master, updated. 3.17.4-71-g00e24331e

paul at claws-mail.org paul at claws-mail.org
Mon Nov 18 13:02:11 CET 2019


The branch, master has been updated
       via  00e24331e85b072bab1eb098c75bbd645ee5e06a (commit)
      from  6e07419b4d874b4f59bc0f3bae6e54d17a5bec8b (commit)

Summary of changes:
 src/plugins/pgpinline/pgpinline.c | 4 ++--
 src/plugins/pgpmime/pgpmime.c     | 4 ++--
 src/plugins/smime/smime.c         | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit 00e24331e85b072bab1eb098c75bbd645ee5e06a
Author: Paul <paul at claws-mail.org>
Date:   Mon Nov 18 13:02:06 2019 +0000

    replace deprecated g_memmove with memmove

diff --git a/src/plugins/pgpinline/pgpinline.c b/src/plugins/pgpinline/pgpinline.c
index f69c79140..c5a05fb99 100644
--- a/src/plugins/pgpinline/pgpinline.c
+++ b/src/plugins/pgpinline/pgpinline.c
@@ -586,7 +586,7 @@ static gboolean pgpinline_sign(MimeInfo *mimeinfo, PrefsAccount *account, const
 	}
 
 	tmp = g_malloc(len+1);
-	g_memmove(tmp, sigcontent, len+1);
+	memmove(tmp, sigcontent, len+1);
 	tmp[len] = '\0';
 	gpgme_data_release(gpgtext);
 	g_free(textstr);
@@ -733,7 +733,7 @@ static gboolean pgpinline_encrypt(MimeInfo *mimeinfo, const gchar *encrypt_data)
 	}
 
 	tmp = g_malloc(len+1);
-	g_memmove(tmp, enccontent, len+1);
+	memmove(tmp, enccontent, len+1);
 	tmp[len] = '\0';
 	g_free(enccontent);
 
diff --git a/src/plugins/pgpmime/pgpmime.c b/src/plugins/pgpmime/pgpmime.c
index 539c2f895..595fa92e9 100644
--- a/src/plugins/pgpmime/pgpmime.c
+++ b/src/plugins/pgpmime/pgpmime.c
@@ -599,7 +599,7 @@ gboolean pgpmime_sign(MimeInfo *mimeinfo, PrefsAccount *account, const gchar *fr
 	newinfo->description = g_strdup(_("OpenPGP digital signature"));
 	newinfo->content = MIMECONTENT_MEM;
 	newinfo->data.mem = g_malloc(len + 1);
-	g_memmove(newinfo->data.mem, sigcontent, len);
+	memmove(newinfo->data.mem, sigcontent, len);
 	newinfo->data.mem[len] = '\0';
 	newinfo->tmp = TRUE;
 	g_node_append(sigmultipart->node, newinfo->node);
@@ -746,7 +746,7 @@ gboolean pgpmime_encrypt(MimeInfo *mimeinfo, const gchar *encrypt_data)
 	newinfo->content = MIMECONTENT_MEM;
 	newinfo->data.mem = g_malloc(len + 1);
 	newinfo->tmp = TRUE;
-	g_memmove(newinfo->data.mem, enccontent, len);
+	memmove(newinfo->data.mem, enccontent, len);
 	newinfo->data.mem[len] = '\0';
 	g_node_append(encmultipart->node, newinfo->node);
 
diff --git a/src/plugins/smime/smime.c b/src/plugins/smime/smime.c
index fd50f1e3f..0d8325938 100644
--- a/src/plugins/smime/smime.c
+++ b/src/plugins/smime/smime.c
@@ -692,7 +692,7 @@ gboolean smime_sign(MimeInfo *mimeinfo, PrefsAccount *account, const gchar *from
 			    g_strdup("smime.p7s"));
 	newinfo->data.mem = g_malloc(len + 1);
 	newinfo->tmp = TRUE;
-	g_memmove(newinfo->data.mem, real_content, len);
+	memmove(newinfo->data.mem, real_content, len);
 	newinfo->data.mem[len] = '\0';
 	newinfo->encoding_type = ENC_BASE64;
 	g_node_append(sigmultipart->node, newinfo->node);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list