commit 0804b3301b521e8f346641e8ad27bc9c0115b78d parent 643138ebb35c3fde52e491bce01c94d6dd5c22b1 Author: sin <sin@2f30.org> Date: Thu, 17 Dec 2015 14:25:19 +0000 Fix off by one Diffstat:
M | ben.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ben.c b/ben.c @@ -52,7 +52,7 @@ parsestr(char *s, char *e, struct ben **b) p += len; *b = emalloc(sizeof(**b)); (*b)->type = 's'; - (*b)->s = &p[-len]; + (*b)->s = &p[-len + 1]; (*b)->start = s; (*b)->end = p + 1; (*b)->len = len;