summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Sprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/Sprite.cpp')
-rw-r--r--nGenEx/Sprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/nGenEx/Sprite.cpp b/nGenEx/Sprite.cpp
index 4086314..c3ca184 100644
--- a/nGenEx/Sprite.cpp
+++ b/nGenEx/Sprite.cpp
@@ -141,7 +141,7 @@ void
Sprite::SetAnimation(Bitmap* animation, int length, int repeat, int share)
{
if (animation) {
- strncpy(name, animation->GetFilename(), 31);
+ strncpy_s(name, animation->GetFilename(), 31);
name[31] = 0;
if (own_frames) {