Commit 804bf671 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Off by one.


git-svn-id: http://www.varnish-cache.org/svn/trunk@1075 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f5c319a4
...@@ -79,7 +79,7 @@ VSLR(enum shmlogtag tag, unsigned id, const char *b, const char *e) ...@@ -79,7 +79,7 @@ VSLR(enum shmlogtag tag, unsigned id, const char *b, const char *e)
assert(loghead->ptr < loghead->size); assert(loghead->ptr < loghead->size);
/* Wrap if necessary */ /* Wrap if necessary */
if (loghead->ptr + 5 + l + 1 > loghead->size) if (loghead->ptr + 5 + l + 1 >= loghead->size)
vsl_wrap(); vsl_wrap();
p = logstart + loghead->ptr; p = logstart + loghead->ptr;
loghead->ptr += 5 + l; 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