diff --git a/stepmania/src/NotesWriterSM.cpp b/stepmania/src/NotesWriterSM.cpp index afa6e95c5e..3e4157f586 100644 --- a/stepmania/src/NotesWriterSM.cpp +++ b/stepmania/src/NotesWriterSM.cpp @@ -129,7 +129,7 @@ bool NotesWriterSM::Write(CString sPath, const Song &out, bool bSavingCache) unsigned i; - FILE* fp = fopen( sPath, "w" ); + FILE* fp = fopen( sPath, "wt" ); if( fp == NULL ) { LOG->Warn( "Error opening song file '%s' for writing: %s", sPath.c_str(), strerror(errno) );