diff --git a/tools/purge/purge.cc b/tools/purge/purge.cc index 3ef9147..07f8b32 100644 --- tools/purge/purge.cc +++ 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[64]; + char timeb[256]; if ( meta && (findings = meta->search( STORE_META_STD )) ) { StoreMetaStd temp; // make data aligned, avoid SIGBUS on RISC machines (ARGH!) diff --git a/tools/purge/purge.cc b/tools/purge/purge.cc index 07f8b32..4bd3ddb 100644 --- tools/purge/purge.cc +++ tools/purge/purge.cc @@ -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(StoreMetaStd) ); + memcpy( &temp, findings->data, sizeof(StoreMetaStdLFS) ); 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 );