copy_file(): prevent truncating file if src == dest

This commit is contained in:
o9000 2015-07-12 17:01:20 +02:00
parent 60657c9809
commit 04fe80b498

View file

@ -35,6 +35,9 @@
void copy_file(const char *pathSrc, const char *pathDest)
{
if (g_str_equal(pathSrc, pathDest))
return;
FILE *fileSrc, *fileDest;
char buffer[100];
int nb;