diff options
author | Daniel Dunbar <daniel@zuster.org> | 2003-03-23 23:47:05 +0300 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2003-03-23 23:47:05 +0300 |
commit | 05afb0639729fa394e533200f5cd951ddefefc0d (patch) | |
tree | 75ee7af70571dde3407206b51bed014b3798aebd /source/blender | |
parent | 361ecbce1bda844e11d85fd3fe08b3a8115b4d31 (diff) |
Unitialized buffer patch (zero length runs in font loading), again thanks to
vc7 magic.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/intern/psfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ?*/ |