]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Wed, 12 Jul 2000 22:15:15 +0000 (22:15 +0000)
committerwessels <>
Wed, 12 Jul 2000 22:15:15 +0000 (22:15 +0000)
 - Record bytes actually written, not the len argument to write().

src/logfile.cc

index 25cc8ebc002a0bea01924022cc4bbd715c29f5e3..04d8a6b93603037196396decfd11c1ba3fbbb1d0 100644 (file)
@@ -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());