From: Amos Jeffries Date: Thu, 4 May 2017 10:01:40 +0000 (+1200) Subject: Revert r15018 X-Git-Tag: SQUID_4_0_20~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d3e63d6c3331299d8292fb8ffee08db9624b157;p=thirdparty%2Fsquid.git Revert r15018 --- diff --git a/tools/purge/purge.cc b/tools/purge/purge.cc index c6d1f73ef5..3ef9147a4f 100644 --- a/tools/purge/purge.cc +++ b/tools/purge/purge.cc @@ -272,7 +272,7 @@ log_extended( const char* fn, int code, long size, const SquidMetaList* meta ) snprintf( md5, sizeof(md5), "%-32s", "(no_md5_data_available)" ); } - char timeb[256]; + char timeb[64]; if ( meta && (findings = meta->search( STORE_META_STD )) ) { StoreMetaStd temp; // make data aligned, avoid SIGBUS on RISC machines (ARGH!) @@ -283,7 +283,7 @@ log_extended( const char* fn, int code, long size, const SquidMetaList* meta ) } else if ( meta && (findings = meta->search( STORE_META_STD_LFS )) ) { StoreMetaStdLFS temp; // make data aligned, avoid SIGBUS on RISC machines (ARGH!) - memcpy( &temp, findings->data, sizeof(StoreMetaStdLFS) ); + memcpy( &temp, findings->data, sizeof(StoreMetaStd) ); snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5hu ", (unsigned long)temp.timestamp, (unsigned long)temp.lastref, (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount );