summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/ParseUtil.cpp
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 17:31:07 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 17:31:07 +0000
commit4e117fe61651631c7b7427ed584ef3b1f9a7df69 (patch)
tree827be5c4345f27db32f7d1d3587c8ce4f41d21bb /nGenEx/ParseUtil.cpp
parent7156b2e5a72fb20c9fe1ffcc61b61470959c108f (diff)
downloadstarshatter-4e117fe61651631c7b7427ed584ef3b1f9a7df69.zip
starshatter-4e117fe61651631c7b7427ed584ef3b1f9a7df69.tar.gz
starshatter-4e117fe61651631c7b7427ed584ef3b1f9a7df69.tar.bz2
Ditto...
Diffstat (limited to 'nGenEx/ParseUtil.cpp')
-rw-r--r--nGenEx/ParseUtil.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nGenEx/ParseUtil.cpp b/nGenEx/ParseUtil.cpp
index 77a0427..c17dacc 100644
--- a/nGenEx/ParseUtil.cpp
+++ b/nGenEx/ParseUtil.cpp
@@ -458,12 +458,12 @@ bool GetDefTime(int& dst, TermDef* def, const char* file)
int s = 0;
char buf[64];
- strcpy(buf, tn->value());
+ strcpy_s(buf, tn->value());
if (strchr(buf, '/'))
- sscanf(buf, "%d/%d:%d:%d", &d, &h, &m, &s);
+ sscanf_s(buf, "%d/%d:%d:%d", &d, &h, &m, &s);
else
- sscanf(buf, "%d:%d:%d", &h, &m, &s);
+ sscanf_s(buf, "%d:%d:%d", &h, &m, &s);
dst = d * 24 * 60 * 60 +
h * 60 * 60 +