diff options
Diffstat (limited to 'dbug')
-rw-r--r-- | dbug/dbug.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c index f956adff3f1..1e72bb348ed 100644 --- a/dbug/dbug.c +++ b/dbug/dbug.c @@ -1979,12 +1979,7 @@ static void DBUGOpenFile(CODE_STATE *cs, else { newfile= !EXISTS(name); - if (!(fp= fopen(name, -#if defined(MSDOS) || defined(__WIN__) - append ? "a+c" : "wc" -#else - append ? "a+" : "w" -#endif + if (!(fp= fopen(name, append ? "a+" : "w"))) ))) { (void) fprintf(stderr, ERR_OPEN, cs->process, name); |