From: wessels <> Date: Wed, 12 Jul 2000 22:15:15 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1905 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e438bd8263f0d4511683da55ba123b6a6bf25fb7;p=thirdparty%2Fsquid.git DW: - Record bytes actually written, not the len argument to write(). --- diff --git a/src/logfile.cc b/src/logfile.cc index 25cc8ebc00..04d8a6b936 100644 --- a/src/logfile.cc +++ b/src/logfile.cc @@ -1,5 +1,5 @@ /* - * $Id: logfile.cc,v 1.4 2000/06/08 03:30:44 wessels Exp $ + * $Id: logfile.cc,v 1.5 2000/07/12 16:15:15 wessels Exp $ * * DEBUG: section 50 Log file handling * AUTHOR: Duane Wessels @@ -176,7 +176,7 @@ logfileWriteWrapper(Logfile * lf, const void *buf, size_t len) { int s; s = write(lf->fd, buf, len); - fd_bytes(lf->fd, len, FD_WRITE); + fd_bytes(lf->fd, s, FD_WRITE); if (s == len) return; fatalf("logfileWrite: %s: %s\n", lf->path, xstrerror());