From 05afb0639729fa394e533200f5cd951ddefefc0d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 23 Mar 2003 20:47:05 +0000 Subject: [PATCH] Unitialized buffer patch (zero length runs in font loading), again thanks to vc7 magic. --- source/blender/blenlib/intern/psfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenlib/intern/psfont.c b/source/blender/blenlib/intern/psfont.c index 4a04e40403c..b9af301cb22 100644 --- a/source/blender/blenlib/intern/psfont.c +++ b/source/blender/blenlib/intern/psfont.c @@ -2008,7 +2008,7 @@ static VFontData *objfnt_to_vfontdata(objfnt *fnt) } } while (!stop); - if (last[0] == first[0] && last[1] == first[1]) meet = 1; + if ((count>0) && last[0] == first[0] && last[1] == first[1]) meet = 1; else meet = 0; /* is er meer dan 1 uniek punt ?*/