aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-12 12:35:40 +0000
committerJohannes Schickel2009-05-12 12:35:40 +0000
commit8d1576505995b4c02a5c74e428010492df5cd28c (patch)
tree59469ec71b1773c8dcffd69b0eacd23008b69894
parentc299dbeb26b38342e2a5c6b9e59b810e48572cd6 (diff)
downloadscummvm-rg350-8d1576505995b4c02a5c74e428010492df5cd28c.tar.gz
scummvm-rg350-8d1576505995b4c02a5c74e428010492df5cd28c.tar.bz2
scummvm-rg350-8d1576505995b4c02a5c74e428010492df5cd28c.zip
Fix strncpy usage.
svn-id: r40482
-rw-r--r--engines/kyra/script.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/script.cpp b/engines/kyra/script.cpp
index 8a031b3fde..a1297770bd 100644
--- a/engines/kyra/script.cpp
+++ b/engines/kyra/script.cpp
@@ -133,6 +133,7 @@ bool EMCInterpreter::load(const char *filename, EMCData *scriptData, const Commo
scriptData->sysFuncs = opcodes;
strncpy(scriptData->filename, filename, 13);
+ scriptData->filename[12] = 0;
return true;
}