Overwrite, instead of append, debug logfiles.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2071 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-07-13 18:31:37 +00:00
parent f94ff0ce9d
commit 99cf7adee0
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void debug_callback_file_init( void ** data )
const char * filename = (const char *)*data;
FILE * logfile = NULL;
logfile = fopen( filename, "a" );
logfile = fopen( filename, "w" );
if (!logfile) {
fprintf( stderr, "Could not open %s for appending!\n", filename );
} else {