libc: use Runemax instead of hardcoded 0x65536 for fmtchar check (thanks qrstuv)

This commit is contained in:
cinap_lenrek 2015-05-17 07:02:44 +02:00
parent bf74dfbc7a
commit dfdc52ea7a
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ _fmtinstall(int c, Fmts f)
{
Convfmt *p, *ep;
if(c<=0 || c>=65536)
if(c<=0 || c>Runemax)
return -1;
if(!f)
f = _badfmt;