diff options
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/mtrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/mtrace.c b/malloc/mtrace.c index 6d56cf0b5c..6cdd5f3324 100644 --- a/malloc/mtrace.c +++ b/malloc/mtrace.c @@ -280,7 +280,7 @@ mtrace () if (mtb == NULL) return; - mallstream = fopen (mallfile != NULL ? mallfile : "/dev/null", "w"); + mallstream = fopen (mallfile != NULL ? mallfile : "/dev/null", "wc"); if (mallstream != NULL) { /* Make sure we close the file descriptor on exec. */ |