ref: e27b8c9f17a0be29160113b6795094d97bf7e01c
parent: a7107a960c8a5967fba3ec74642db677f1986819
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun May 17 03:02:44 EDT 2015
libc: use Runemax instead of hardcoded 0x65536 for fmtchar check (thanks qrstuv)
--- a/sys/src/ape/lib/fmt/fmt.c
+++ b/sys/src/ape/lib/fmt/fmt.c
@@ -80,7 +80,7 @@
{Convfmt *p, *ep;
- if(c<=0 || c>=65536)
+ if(c<=0 || c>Runemax)
return -1;
if(!f)
f = __badfmt;
--- a/sys/src/libc/fmt/fmt.c
+++ b/sys/src/libc/fmt/fmt.c
@@ -61,7 +61,7 @@
{Convfmt *p, *ep;
- if(c<=0 || c>=65536)
+ if(c<=0 || c>Runemax)
return -1;
if(!f)
f = _badfmt;
--
⑨