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
|
@ -80,7 +80,7 @@ __fmtinstall(int c, Fmts f)
|
||||||
{
|
{
|
||||||
Convfmt *p, *ep;
|
Convfmt *p, *ep;
|
||||||
|
|
||||||
if(c<=0 || c>=65536)
|
if(c<=0 || c>Runemax)
|
||||||
return -1;
|
return -1;
|
||||||
if(!f)
|
if(!f)
|
||||||
f = __badfmt;
|
f = __badfmt;
|
||||||
|
|
|
@ -61,7 +61,7 @@ _fmtinstall(int c, Fmts f)
|
||||||
{
|
{
|
||||||
Convfmt *p, *ep;
|
Convfmt *p, *ep;
|
||||||
|
|
||||||
if(c<=0 || c>=65536)
|
if(c<=0 || c>Runemax)
|
||||||
return -1;
|
return -1;
|
||||||
if(!f)
|
if(!f)
|
||||||
f = _badfmt;
|
f = _badfmt;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue