diff options
author | Russ Cox <rsc@swtch.com> | 2010-01-28 16:58:34 -0800 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-01-28 16:58:34 -0800 |
commit | 2d6da3763ec643f353a1c48e2e7a2ed7c25046a7 (patch) | |
tree | a679c3d5942ba92fe17fdc4b7ae72135795f2d19 /src/libdraw | |
parent | ecb01acac3a1d97b88d8c08ba6d67836c9d138a8 (diff) | |
download | plan9port-2d6da3763ec643f353a1c48e2e7a2ed7c25046a7.tar.gz plan9port-2d6da3763ec643f353a1c48e2e7a2ed7c25046a7.tar.bz2 plan9port-2d6da3763ec643f353a1c48e2e7a2ed7c25046a7.zip |
libdraw: allow 32-bit Runes
R=, rsc
CC=
http://codereview.appspot.com/196054
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/buildfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libdraw/buildfont.c b/src/libdraw/buildfont.c index fa50b6ef..75b59b11 100644 --- a/src/libdraw/buildfont.c +++ b/src/libdraw/buildfont.c @@ -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); |