=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term_ascii.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- src/usr.bin/mandoc/term_ascii.c 2014/10/28 17:35:42 1.25 +++ src/usr.bin/mandoc/term_ascii.c 2014/10/28 18:48:56 1.26 @@ -1,4 +1,4 @@ -/* $OpenBSD: term_ascii.c,v 1.25 2014/10/28 17:35:42 schwarze Exp $ */ +/* $OpenBSD: term_ascii.c,v 1.26 2014/10/28 18:48:56 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze @@ -17,6 +17,7 @@ */ #include +#include #include #include #include @@ -327,8 +328,7 @@ "j", "DZ", "Dz", "dz", "'\bG", "'\bg", "HV", "W", "`\bN", "`\bn", "A", "a", "'\bAE","'\bae","O", "o"}; - if (uc < 0) - return(""); + assert(uc >= 0); if ((size_t)uc < sizeof(tab)/sizeof(tab[0])) return(tab[uc]); return(mchars_uc2str(uc));