Commit 8db4492b authored by Tollef Fog Heen's avatar Tollef Fog Heen

Fix segfault on 32 bit machines

Adjust the size of the rec field to match what's in shmlog.

No corresponding -trunk commit as the code has been reworked already.

Fixes #765


git-svn-id: http://www.varnish-cache.org/svn/branches/2.1@5150 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 87aa75b5
......@@ -55,7 +55,7 @@ SVNID("$Id$")
#include "varnishapi.h"
struct top {
unsigned char rec[4];
unsigned char rec[SHMLOG_DATA-1];
unsigned char *rec_data;
unsigned clen;
unsigned hash;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment