From d489095bcdf9603053ebd514588093a991605ffb Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Fri, 9 Dec 2011 15:37:22 +0000 Subject: More string and fopen safety measures --- nGenEx/Bolt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nGenEx/Bolt.cpp') diff --git a/nGenEx/Bolt.cpp b/nGenEx/Bolt.cpp index af758b8..997ee51 100644 --- a/nGenEx/Bolt.cpp +++ b/nGenEx/Bolt.cpp @@ -71,7 +71,7 @@ Bolt::Bolt(double len, double wid, Bitmap* tex, int share) radius = (float) ((length>width) ? (length) : (width*2)); if (texture) { - strncpy(name, texture->GetFilename(), 31); + strncpy_s(name, texture->GetFilename(), 31); name[31] = 0; } } -- cgit v1.1