Commit bed7ff53 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Off by one.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1075 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 65285dca
......@@ -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;
......
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