diff options
Diffstat (limited to 'nGenEx/Solid.cpp')
-rw-r--r-- | nGenEx/Solid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nGenEx/Solid.cpp b/nGenEx/Solid.cpp index 2aa241d..d059957 100644 --- a/nGenEx/Solid.cpp +++ b/nGenEx/Solid.cpp @@ -1875,7 +1875,7 @@ Surface::SetName(const char* n) int len = sizeof(name);
ZeroMemory(name, len);
- strncpy(name, n, len-1);
+ strncpy_s(name, n, len-1);
}
void
@@ -2438,7 +2438,7 @@ ModelFile::ModelFile(const char* fname) {
int len = sizeof(filename);
ZeroMemory(filename, len);
- strncpy(filename, fname, len);
+ strncpy_s(filename, fname, len);
filename[len-1] = 0;
}
|