summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/RichTextBox.cpp
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 16:46:21 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 16:46:21 +0000
commit396c12ee73193f4ac3665ecac2f634fc0b046697 (patch)
tree16edb33b60f95f6bda93bc84b3f2eb81e316ba1d /nGenEx/RichTextBox.cpp
parent50971e84e295033941fac5291b08e593541fe945 (diff)
downloadstarshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.zip
starshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.tar.gz
starshatter-396c12ee73193f4ac3665ecac2f634fc0b046697.tar.bz2
Fixes for unsafe string handling, variable scoping errors.
Diffstat (limited to 'nGenEx/RichTextBox.cpp')
-rw-r--r--nGenEx/RichTextBox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nGenEx/RichTextBox.cpp b/nGenEx/RichTextBox.cpp
index f7c75ff..6b8bff0 100644
--- a/nGenEx/RichTextBox.cpp
+++ b/nGenEx/RichTextBox.cpp
@@ -41,7 +41,7 @@ RichTextBox::RichTextBox(Screen* screen, int ax, int ay, int aw, int ah, DWORD a
leading = 2;
char buf[32];
- sprintf(buf, "RichTextBox %d", id);
+ sprintf_s(buf, "RichTextBox %d", id);
desc = buf;
}
@@ -162,7 +162,7 @@ int RichTextBox::process_tag(const char* text, int index, Font*& font)
switch (tag[1]) {
case 'c':
- case 'C': if (strnicmp(tag+1, "color", 5) == 0) {
+ case 'C': if (_strnicmp(tag+1, "color", 5) == 0) {
int r = 0;
int g = 0;
int b = 0;
@@ -178,7 +178,7 @@ int RichTextBox::process_tag(const char* text, int index, Font*& font)
break;
case 'f':
- case 'F': if (strnicmp(tag+1, "font", 4) == 0) {
+ case 'F': if (_strnicmp(tag+1, "font", 4) == 0) {
Color current_color = Color::White;
if (font)