Return to chars.c CVS log | Up to [local] / src / usr.bin / mandoc |
version 1.32, 2014/10/27 13:29:30 | version 1.33, 2014/10/28 13:22:57 | ||
---|---|---|---|
|
|
||
{ | { | ||
int i; | int i; | ||
if ((i = mandoc_strntoi(p, sz, 16)) < 0) | i = mandoc_strntoi(p, sz, 16); | ||
return(0xFFFD); | assert(i >= 0 && i <= 0x10FFFF); | ||
return(i); | |||
/* | |||
* XXX Code is missing here to exclude bogus ranges. | |||
*/ | |||
return(i <= 0x10FFFF ? i : 0xFFFD); | |||
} | } | ||
const char * | const char * |