Commit ece9e66b authored by Christoffer Ackelman's avatar Christoffer Ackelman

Removed compile warnings about files that could not be removed.

parent 0ce59d1a
......@@ -1224,7 +1224,7 @@ int CnvReadWbl::copy_tmp_file(const char* tmpfilename, std::ofstream& fp_to)
fp_to.put(c);
fclose(fp);
sprintf(cmd, "rm %s &> /dev/null", tmpfilename);
sprintf(cmd, "rm -f %s", tmpfilename);
system(cmd);
return 1;
......
......@@ -306,7 +306,7 @@ int CnvPdfObj::print_image()
cnv_free_image(image, pixmap);
fimg.close();
sprintf(cmd, "rm %s &> /dev/null", fname);
sprintf(cmd, "rm -f %s", fname);
system(cmd);
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment