diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 16:46:21 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-08 16:46:21 +0000 |
commit | 396c12ee73193f4ac3665ecac2f634fc0b046697 (patch) | |
tree | 16edb33b60f95f6bda93bc84b3f2eb81e316ba1d /nGenEx/ScrollWindow.cpp | |
parent | 50971e84e295033941fac5291b08e593541fe945 (diff) | |
download | starshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.zip starshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.tar.gz starshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.tar.bz2 |
Fixes for unsafe string handling, variable scoping errors.
Diffstat (limited to 'nGenEx/ScrollWindow.cpp')
-rw-r--r-- | nGenEx/ScrollWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
}
|