From 5ab901560e06312e4a411959750d0cd437a6309e Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 26 Feb 2011 18:46:10 +0100 Subject: [PATCH] fix potential problem --- tools/convttf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/convttf.c b/tools/convttf.c index 4572fb493..ca9e4fbb4 100644 --- a/tools/convttf.c +++ b/tools/convttf.c @@ -744,6 +744,7 @@ void convttf(char* path, char* destfile, FT_Long face_index) /* insert empty pixels on the left */ int col_off = w - stride; if (col_off > 1) col_off /= 2; + if (col_off < 0) col_off = 0; for(row=0; row < glyph_height; row++) { -- 2.11.4.GIT