summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-27 14:58:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-27 14:58:28 +0000
commit4e4c3f0679ca7e81dec55e57275df8005269ce1e (patch)
tree6332092267a4d327a0d17412cd1d12571d87445d
parent21faecc0fbe4cc67e0f3a2c54f693b486a286332 (diff)
downloadmandoc-4e4c3f0679ca7e81dec55e57275df8005269ce1e.tar.gz
Fix a memory-offset bug that was hell tracking down.
-rw-r--r--roff.c2
1 files changed, 1 insertions, 1 deletions
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);