From 425755a9ec7d5f4716abd326f0ae4fbfe83370de Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 18 Sep 2006 14:54:20 +0000 Subject: [PATCH] Off by one. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1075 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/shmlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/shmlog.c b/varnish-cache/bin/varnishd/shmlog.c index 1e6cce65..38fbdb21 100644 --- a/varnish-cache/bin/varnishd/shmlog.c +++ b/varnish-cache/bin/varnishd/shmlog.c @@ -79,7 +79,7 @@ VSLR(enum shmlogtag tag, unsigned id, const char *b, const char *e) assert(loghead->ptr < loghead->size); /* Wrap if necessary */ - if (loghead->ptr + 5 + l + 1 > loghead->size) + if (loghead->ptr + 5 + l + 1 >= loghead->size) vsl_wrap(); p = logstart + loghead->ptr; loghead->ptr += 5 + l; -- 2.39.5