Overwrite, instead of append, debug logfiles.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2071 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
f94ff0ce9d
commit
99cf7adee0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue