libc: use Runemax instead of hardcoded 0x65536 for fmtchar check (thanks qrstuv)
This commit is contained in:
parent
bf74dfbc7a
commit
dfdc52ea7a
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue