]> err.no Git - varnish/commitdiff
Off by one.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 18 Sep 2006 14:54:20 +0000 (14:54 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 18 Sep 2006 14:54:20 +0000 (14:54 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1075 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/shmlog.c

index 1e6cce65baf4f4f5ba799e2d5df9193e010bf474..38fbdb215fbe0fe145932196b87e76a1fd8279a1 100644 (file)
@@ -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;