replace deprecated g_memmove with memmove
authorPaul <paul@claws-mail.org>
Mon, 18 Nov 2019 13:02:06 +0000 (13:02 +0000)
committerPaul <paul@claws-mail.org>
Mon, 18 Nov 2019 13:02:06 +0000 (13:02 +0000)
src/plugins/pgpinline/pgpinline.c
src/plugins/pgpmime/pgpmime.c
src/plugins/smime/smime.c

index f69c79140f7b3149b96e74e6346fc65f1b0819e0..c5a05fb99b6830b403b0c8de2f6dc0b62acacb45 100644 (file)
@@ -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);
 
index 539c2f895c5f1b68e18cbd93aa6f15af37e4d373..595fa92e9cc5e10250449e154e15e7de1fbbf7e7 100644 (file)
@@ -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);
 
index fd50f1e3ff5310588375c0a90c56b86647023e02..0d83259384fdcbec8932c87ccb85a05bc1b1ab82 100644 (file)
@@ -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);