From 396c12ee73193f4ac3665ecac2f634fc0b046697 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 16:46:21 +0000 Subject: Fixes for unsafe string handling, variable scoping errors. --- nGenEx/Font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nGenEx/Font.cpp') diff --git a/nGenEx/Font.cpp b/nGenEx/Font.cpp index e1c90dc..04127c6 100644 --- a/nGenEx/Font.cpp +++ b/nGenEx/Font.cpp @@ -125,7 +125,7 @@ Font::Load(const char* name) return false; } - for (i = 0; i < 256; i++) { + for (int i = 0; i < 256; i++) { glyph[i].width = CalcWidth(i); } @@ -134,7 +134,7 @@ Font::Load(const char* name) if (!(flags & (FONT_FIXED_PITCH | FONT_NO_KERN))) AutoKern(); - for (i = 0; i < 256; i++) { + for (int i = 0; i < 256; i++) { for (int j = 0; j < 256; j++) { if (kern_tweak[i][j] < 100) { kern[i][j] = kern_tweak[i][j]; -- cgit v1.1