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/Skin.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/Skin.cpp')
-rw-r--r-- | nGenEx/Skin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nGenEx/Skin.cpp b/nGenEx/Skin.cpp index f409501..d7dcc80 100644 --- a/nGenEx/Skin.cpp +++ b/nGenEx/Skin.cpp @@ -23,7 +23,7 @@ void Print(const char* fmt, ...); Skin::Skin(const char* n)
{
if (n && *n) {
- strncpy(name, n, NAMELEN);
+ strncpy_s(name, n, NAMELEN);
name[NAMELEN-1] = 0;
}
@@ -47,7 +47,7 @@ void Skin::SetName(const char* n)
{
if (n && *n) {
- strncpy(name, n, NAMELEN);
+ strncpy_s(name, n, NAMELEN);
name[NAMELEN-1] = 0;
}
}
@@ -56,7 +56,7 @@ void Skin::SetPath(const char* n)
{
if (n && *n) {
- strncpy(path, n, 256);
+ strncpy_s(path, n, 256);
path[255] = 0;
}
|