=================================================================== RCS file: /cvs/mandoc/mdoc_validate.c,v retrieving revision 1.358 retrieving revision 1.359 diff -u -p -r1.358 -r1.359 --- mandoc/mdoc_validate.c 2018/04/11 17:11:13 1.358 +++ mandoc/mdoc_validate.c 2018/08/01 13:46:15 1.359 @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.358 2018/04/11 17:11:13 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.359 2018/08/01 13:46:15 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2018 Ingo Schwarze @@ -440,7 +440,7 @@ check_text_em(struct roff_man *mdoc, int ln, int pos, np->string != '\0' && isalpha((unsigned char)np->string[ strlen(np->string) - 1])) || - (cp[2] != '\0' ? + (cp[1] != '\0' && cp[2] != '\0' ? isalpha((unsigned char)cp[2]) : nn != NULL && nn->type == ROFFT_TEXT &&