summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
Diffstat (limited to 'roff.c')
-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);