replace deprecated g_memmove with memmove
[claws.git] / src / plugins / pgpmime / pgpmime.c
index 61eed9bc3deee3e674c4dc9fb118e94cda383ce1..595fa92e9cc5e10250449e154e15e7de1fbbf7e7 100644 (file)
@@ -599,8 +599,9 @@ 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);
 
        g_free(sigcontent);
@@ -736,6 +737,7 @@ gboolean pgpmime_encrypt(MimeInfo *mimeinfo, const gchar *encrypt_data)
        newinfo->subtype = g_strdup("pgp-encrypted");
        newinfo->content = MIMECONTENT_MEM;
        newinfo->data.mem = g_strdup("Version: 1\n");
+       newinfo->tmp = TRUE;
        g_node_append(encmultipart->node, newinfo->node);
 
        newinfo = procmime_mimeinfo_new();
@@ -743,7 +745,8 @@ gboolean pgpmime_encrypt(MimeInfo *mimeinfo, const gchar *encrypt_data)
        newinfo->subtype = g_strdup("octet-stream");
        newinfo->content = MIMECONTENT_MEM;
        newinfo->data.mem = g_malloc(len + 1);
-       g_memmove(newinfo->data.mem, enccontent, len);
+       newinfo->tmp = TRUE;
+       memmove(newinfo->data.mem, enccontent, len);
        newinfo->data.mem[len] = '\0';
        g_node_append(encmultipart->node, newinfo->node);