diff options
author | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-09 15:37:22 +0000 |
---|---|---|
committer | FWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544> | 2011-12-09 15:37:22 +0000 |
commit | d489095bcdf9603053ebd514588093a991605ffb (patch) | |
tree | db03ad0a00e1466fef64290adfecd67bc9373d1c /nGenEx/Bolt.cpp | |
parent | 4f272a3e310be77b4ba16fdfd2c9b6735f411037 (diff) | |
download | starshatter-d489095bcdf9603053ebd514588093a991605ffb.zip starshatter-d489095bcdf9603053ebd514588093a991605ffb.tar.gz starshatter-d489095bcdf9603053ebd514588093a991605ffb.tar.bz2 |
More string and fopen safety measures
Diffstat (limited to 'nGenEx/Bolt.cpp')
-rw-r--r-- | nGenEx/Bolt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
}
|