fix saving bug

This commit is contained in:
dborth 2008-12-20 20:32:24 +00:00
parent 7738cb3344
commit 2f21a6cb78

View File

@ -481,7 +481,7 @@ SaveFile (char * buffer, char *filepath, u32 datasize, int method, bool silent)
sprintf(fullpath, "%s%s", rootdir, filepath);
// open file for writing
file = fopen (filepath, "wb");
file = fopen (fullpath, "wb");
if (file > 0)
{