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/Sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nGenEx/Sprite.cpp') 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) { -- cgit v1.1