=================================================================== RCS file: /cvs/mandoc/mandoc.c,v retrieving revision 1.89 retrieving revision 1.90 diff -u -p -r1.89 -r1.90 --- mandoc/mandoc.c 2014/12/15 17:30:30 1.89 +++ mandoc/mandoc.c 2015/01/01 18:11:45 1.90 @@ -1,7 +1,7 @@ -/* $Id: mandoc.c,v 1.89 2014/12/15 17:30:30 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.90 2015/01/01 18:11:45 schwarze Exp $ */ /* - * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons - * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze + * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons + * Copyright (c) 2011-2015 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -225,7 +225,7 @@ mandoc_escape(const char **end, const char **start, in /* See +/- counts as a sign. */ if ('+' == **end || '-' == **end || ASCII_HYPH == **end) - (*end)++; + *start = ++*end; switch (**end) { case '(':