]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Can't use memcpy on StatCounters structures!
authorwessels <>
Wed, 12 Aug 1998 01:00:42 +0000 (01:00 +0000)
committerwessels <>
Wed, 12 Aug 1998 01:00:42 +0000 (01:00 +0000)
src/stat.cc

index 4477664cef74a33d242c62364451fb4e505c66c7..35d22510c48646158dc0bbfc36bdebeec2844e7a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stat.cc,v 1.273 1998/07/30 23:31:09 wessels Exp $
+ * $Id: stat.cc,v 1.274 1998/08/11 19:00:42 wessels Exp $
  *
  * DEBUG: section 18    Cache Manager Statistics
  * AUTHOR: Harvest Derived
@@ -826,7 +826,7 @@ statAvgTick(void *notused)
        StatCounters *t = &CountHourHist[1];
        StatCounters *c = &CountHist[N_COUNT_HIST];
        xmemmove(p, t, (N_COUNT_HOUR_HIST - 1) * sizeof(StatCounters));
-       memcpy(t, c, sizeof(StatCounters));
+       statCountersCopy(t, c);
        NCountHourHist++;
     }
 }