Commit 68f15e0e authored by Geoff Simmons's avatar Geoff Simmons Committed by Pål Hermunn Johansen

Fix an off-by-one error in WS_Assert_Allocated().

parent 456ee023
......@@ -67,7 +67,7 @@ WS_Assert_Allocated(const struct ws *ws, const void *ptr, ssize_t len)
WS_Assert(ws);
if (len < 0)
len = strlen(p) + 1;
assert(p >= ws->s && (p + len) < ws->f);
assert(p >= ws->s && (p + len) <= ws->f);
}
/*
......
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