aboutsummaryrefslogtreecommitdiff
path: root/src/libdraw/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdraw/font.c')
-rw-r--r--src/libdraw/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libdraw/font.c b/src/libdraw/font.c
index 6b14d3fc..9feffa42 100644
--- a/src/libdraw/font.c
+++ b/src/libdraw/font.c
@@ -28,7 +28,7 @@ cachechars(Font *f, char **ss, Rune **rr, ushort *cp, int max, int *wp, char **s
}
wid = 0;
*subfontname = 0;
- for(i=0; (*sp || *rp) && i<max; sp+=w, rp+=rw){
+ for(i=0; i<max && (*sp || *rp); sp+=w, rp+=rw){
if(ss){
r = *(uchar*)sp;
if(r < Runeself)