Coverity fixes
[claws.git] / src / partial_download.c
index 6ef11b96ba77084f97c4971549277e1f9f66f55d..d7b0ce695921b78c83992b9c81da238ed5144e3d 100644 (file)
@@ -316,8 +316,7 @@ static int partial_uidl_mark_mail(MsgInfo *msginfo, int download)
        }
 
        fclose(fp);
-       claws_unlink(filename);
-       g_rename(pathnew, filename);
+       rename_force(pathnew, filename);
        g_free(pathnew);
        msginfo->planned_download = download;
        msgcache_update_msg(msginfo->folder->cache, msginfo);