diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-05-17 07:02:44 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-05-17 07:02:44 +0200 |
commit | dfdc52ea7ad0b5950a08d80052dbc667eec3a803 (patch) | |
tree | a188029bc0544e2fe387349f459741fb7b2d681d /sys/src/ape/lib/fmt | |
parent | bf74dfbc7ae39b0e7aee35bad63fb219f49e88cb (diff) |
libc: use Runemax instead of hardcoded 0x65536 for fmtchar check (thanks qrstuv)
Diffstat (limited to 'sys/src/ape/lib/fmt')
-rw-r--r-- | sys/src/ape/lib/fmt/fmt.c | 2 |
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; |