From 396c12ee73193f4ac3665ecac2f634fc0b046697 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 16:46:21 +0000 Subject: Fixes for unsafe string handling, variable scoping errors. --- nGenEx/Skin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nGenEx/Skin.cpp') 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; } -- cgit v1.1