libdraw: allow 32-bit Runes

R=, rsc
CC=
http://codereview.appspot.com/196054
This commit is contained in:
Russ Cox 2010-01-28 16:58:34 -08:00
parent ecb01acac3
commit 2d6da3763e

View file

@ -70,7 +70,7 @@ buildfont(Display *d, char *buf, char *name)
}
max = strtol(s, &s, 0);
s = skip(s);
if(*s==0 || min>=65536 || max>=65536 || min>max){
if(*s==0 || min>Runemax || max>Runemax || min>max){
werrstr("illegal subfont range");
Err3:
freefont(fnt);