summaryrefslogtreecommitdiffstats
path: root/src/build_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_log.cc')
-rwxr-xr-x[-rw-r--r--]src/build_log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_log.cc b/src/build_log.cc
index 3073f7f..8c45c77 100644..100755
--- a/src/build_log.cc
+++ b/src/build_log.cc
@@ -54,7 +54,7 @@ bool BuildLog::OpenForWrite(const string& path, string* err) {
*err = strerror(errno);
return false;
}
- setvbuf(log_file_, NULL, _IOLBF, 0);
+ setvbuf(log_file_, NULL, _IOLBF, BUFSIZ);
if (ftell(log_file_) == 0) {
if (fwrite(kFileSignature, sizeof(kFileSignature) - 1, 1, log_file_) < 1) {