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 a7f0a90d5f..f3c1387274 100644 --- a/malloc/mtrace.c +++ b/malloc/mtrace.c @@ -244,7 +244,7 @@ mtrace () if (mallstream != NULL) { /* Be sure it doesn't malloc its buffer! */ - setbuffer (mallstream, malloc_trace_buffer, TRACE_BUFFER_SIZE); + setvbuf (mallstream, malloc_trace_buffer, _IOFBF, TRACE_BUFFER_SIZE); fprintf (mallstream, "= Start\n"); tr_old_free_hook = __free_hook; __free_hook = tr_freehook; |