=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/roff.c,v retrieving revision 1.113 retrieving revision 1.114 diff -u -r1.113 -r1.114 --- src/usr.bin/mandoc/roff.c 2014/12/16 01:21:37 1.113 +++ src/usr.bin/mandoc/roff.c 2014/12/16 03:52:31 1.114 @@ -1,4 +1,4 @@ -/* $OpenBSD: roff.c,v 1.113 2014/12/16 01:21:37 schwarze Exp $ */ +/* $OpenBSD: roff.c,v 1.114 2014/12/16 03:52:31 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -1234,7 +1234,7 @@ out: if (NULL == s3) s3 = strchr(s2, '\0'); - else + else if (*s3 != '\0') s3++; *pos = s3 - v; return(match);