summaryrefslogtreecommitdiff
path: root/sys/src/ape
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-05-17 07:02:44 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-05-17 07:02:44 +0200
commitdfdc52ea7ad0b5950a08d80052dbc667eec3a803 (patch)
treea188029bc0544e2fe387349f459741fb7b2d681d /sys/src/ape
parentbf74dfbc7ae39b0e7aee35bad63fb219f49e88cb (diff)
libc: use Runemax instead of hardcoded 0x65536 for fmtchar check (thanks qrstuv)
Diffstat (limited to 'sys/src/ape')
-rw-r--r--sys/src/ape/lib/fmt/fmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/ape/lib/fmt/fmt.c b/sys/src/ape/lib/fmt/fmt.c
index 976bf7ca2..51bf9884d 100644
--- a/sys/src/ape/lib/fmt/fmt.c
+++ b/sys/src/ape/lib/fmt/fmt.c
@@ -80,7 +80,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;