mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fix some sprintf warnings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1489 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -73,10 +73,10 @@ CUCode_AX::~CUCode_AX()
|
||||
// ----------------
|
||||
void CUCode_AX::SaveLogFile(std::string f, int resizeTo, bool type, bool Wii)
|
||||
{
|
||||
if(gpName.length() > 0) // thios is currently off in the Release build
|
||||
if (gpName.length() > 0) // this is currently off in the Release build
|
||||
{
|
||||
std::ostringstream ci;
|
||||
std::ostringstream cType;
|
||||
std::ostringstream ci;
|
||||
std::ostringstream cType;
|
||||
|
||||
ci << (resizeTo - 1); // write ci
|
||||
cType << type; // write cType
|
||||
@ -86,7 +86,7 @@ void CUCode_AX::SaveLogFile(std::string f, int resizeTo, bool type, bool Wii)
|
||||
FileName += Wii ? "_sepWii_sep" : "_sepGC_sep"; FileName += ".log";
|
||||
|
||||
FILE* fhandle = fopen(FileName.c_str(), "w");
|
||||
fprintf(fhandle, f.c_str());
|
||||
fprintf(fhandle, "%s", f.c_str());
|
||||
fflush(fhandle); fhandle = NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user