From: wessels <> Date: Wed, 12 Aug 1998 01:00:42 +0000 (+0000) Subject: Can't use memcpy on StatCounters structures! X-Git-Tag: SQUID_3_0_PRE1~2920 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a887b8faf82c4b05e6fd8df783d8eb7c3cee0d22;p=thirdparty%2Fsquid.git Can't use memcpy on StatCounters structures! --- diff --git a/src/stat.cc b/src/stat.cc index 4477664cef..35d22510c4 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -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++; } }