From bc9ad8e27cb2bcd2311818c021f5ac694b62b33f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 1 Dec 2003 22:18:36 +0000 Subject: [PATCH] hopefully fix weird newline behavior for real --- stepmania/src/NotesWriterSM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) );