From d489095bcdf9603053ebd514588093a991605ffb Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 15:37:22 +0000 Subject: More string and fopen safety measures --- nGenEx/ComboBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nGenEx/ComboBox.cpp') diff --git a/nGenEx/ComboBox.cpp b/nGenEx/ComboBox.cpp index 82880de..29cc87f 100644 --- a/nGenEx/ComboBox.cpp +++ b/nGenEx/ComboBox.cpp @@ -43,7 +43,7 @@ ComboBox::ComboBox(ActiveWindow* p, int ax, int ay, int aw, int ah, DWORD aid) bevel_width = 5; char buf[32]; - sprintf(buf, "ComboBox %d", id); + sprintf_s(buf, "ComboBox %d", id); desc = buf; } @@ -61,7 +61,7 @@ ComboBox::ComboBox(Screen* s, int ax, int ay, int aw, int ah, DWORD aid) bevel_width = 5; char buf[32]; - sprintf(buf, "ComboBox %d", id); + sprintf_s(buf, "ComboBox %d", id); desc = buf; } -- cgit v1.1