fix saving bug

This commit is contained in:
dborth 2008-12-20 20:32:44 +00:00
parent 67292abc52
commit 5b4ea2b8b5

View File

@ -479,7 +479,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)
{