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/ScrollWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nGenEx/ScrollWindow.cpp') diff --git a/nGenEx/ScrollWindow.cpp b/nGenEx/ScrollWindow.cpp index effd967..8b50c73 100644 --- a/nGenEx/ScrollWindow.cpp +++ b/nGenEx/ScrollWindow.cpp @@ -58,7 +58,7 @@ ScrollWindow::ScrollWindow(ActiveWindow* p, int ax, int ay, int aw, int ah, DWOR thumb_pos = TRACK_START; char buf[32]; - sprintf(buf, "ScrollWindow %d", id); + sprintf_s(buf, "ScrollWindow %d", id); desc = buf; } @@ -89,7 +89,7 @@ ScrollWindow::ScrollWindow(Screen* s, int ax, int ay, int aw, int ah, DWORD aid, thumb_pos = TRACK_START; char buf[32]; - sprintf(buf, "ScrollWindow %d", id); + sprintf_s(buf, "ScrollWindow %d", id); desc = buf; } -- cgit v1.1