summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Button.cpp
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 15:37:22 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-09 15:37:22 +0000
commitd489095bcdf9603053ebd514588093a991605ffb (patch)
treedb03ad0a00e1466fef64290adfecd67bc9373d1c /nGenEx/Button.cpp
parent4f272a3e310be77b4ba16fdfd2c9b6735f411037 (diff)
downloadstarshatter-d489095bcdf9603053ebd514588093a991605ffb.zip
starshatter-d489095bcdf9603053ebd514588093a991605ffb.tar.gz
starshatter-d489095bcdf9603053ebd514588093a991605ffb.tar.bz2
More string and fopen safety measures
Diffstat (limited to 'nGenEx/Button.cpp')
-rw-r--r--nGenEx/Button.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/nGenEx/Button.cpp b/nGenEx/Button.cpp
index 2a52b57..f69a41b 100644
--- a/nGenEx/Button.cpp
+++ b/nGenEx/Button.cpp
@@ -64,7 +64,7 @@ Button::Button(Screen* s, int ax, int ay, int aw, int ah, DWORD aid)
transition_image = 0;
char buf[32];
- sprintf(buf, "Button %d", id);
+ sprintf_s(buf, "Button %d", id);
desc = buf;
}
@@ -87,7 +87,7 @@ Button::Button(ActiveWindow* p, int ax, int ay, int aw, int ah, DWORD aid)
transition_image = 0;
char buf[32];
- sprintf(buf, "Button %d", id);
+ sprintf_s(buf, "Button %d", id);
desc = buf;
}