From 4e4c3f0679ca7e81dec55e57275df8005269ce1e Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 27 Jul 2011 14:58:28 +0000 Subject: Fix a memory-offset bug that was hell tracking down. --- roff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index 21533b95..19d6d29c 100644 --- a/roff.c +++ b/roff.c @@ -496,7 +496,7 @@ again: /* Replace the escape sequence by the string. */ - pos += (stesc - *bufp); + pos = stesc - *bufp; nsz = *szp + strlen(res) + 1; n = mandoc_malloc(nsz); -- cgit