=================================================================== RCS file: /cvs/mandoc/roff.c,v retrieving revision 1.160 retrieving revision 1.161 diff -u -p -r1.160 -r1.161 --- mandoc/roff.c 2011/07/27 14:23:27 1.160 +++ mandoc/roff.c 2011/07/27 14:58:28 1.161 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.160 2011/07/27 14:23:27 kristaps Exp $ */ +/* $Id: roff.c,v 1.161 2011/07/27 14:58:28 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -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);