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/FormWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nGenEx/FormWindow.cpp') diff --git a/nGenEx/FormWindow.cpp b/nGenEx/FormWindow.cpp index 1613491..89536ad 100644 --- a/nGenEx/FormWindow.cpp +++ b/nGenEx/FormWindow.cpp @@ -34,7 +34,7 @@ FormWindow::FormWindow(Screen* screen, int ax, int ay, int aw, int ah, : ActiveWindow(screen, ax, ay, aw, ah, aid, s, pParent) { char buf[32]; - sprintf(buf, "Form %d", id); + sprintf_s(buf, "Form %d", id); desc = buf; } @@ -584,7 +584,7 @@ FormWindow::CreateDefList(CtrlDef& def) } int nitems = def.NumItems(); - for (i = 0; i < nitems; i++) + for (int i = 0; i < nitems; i++) ctrl->AddItem(def.GetItem(i)); Font* f = FontMgr::Find(def.GetFont()); -- cgit v1.1