diff options
author | Johannes Schickel | 2009-05-12 12:35:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-12 12:35:40 +0000 |
commit | 8d1576505995b4c02a5c74e428010492df5cd28c (patch) | |
tree | 59469ec71b1773c8dcffd69b0eacd23008b69894 /engines/kyra | |
parent | c299dbeb26b38342e2a5c6b9e59b810e48572cd6 (diff) | |
download | scummvm-rg350-8d1576505995b4c02a5c74e428010492df5cd28c.tar.gz scummvm-rg350-8d1576505995b4c02a5c74e428010492df5cd28c.tar.bz2 scummvm-rg350-8d1576505995b4c02a5c74e428010492df5cd28c.zip |
Fix strncpy usage.
svn-id: r40482
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/script.cpp | 1 |
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; } |