diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fcweight.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fcweight.c b/src/fcweight.c index 1a3b6081..036a518e 100644 --- a/src/fcweight.c +++ b/src/fcweight.c @@ -75,6 +75,7 @@ FcWeightFromOpenType (int ot_weight) case 9: ot_weight = 900; break; } } + ot_weight = FC_MIN (ot_weight, map[(sizeof (map) / sizeof (map[0])) - 1].ot); for (i = 1; ot_weight > map[i].ot; i++) ; |