diff options
author | BLooperZ | 2019-10-13 16:49:18 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-18 02:02:14 +0100 |
commit | f7e039d3c2d62a51f619e4b4a246fd8b58862609 (patch) | |
tree | 0384dc6c1b333a593f4a7d96248f3d82c2645b0e /engines | |
parent | b6ff8f77b70bb8243114c384126d96331c98b3fc (diff) | |
download | scummvm-rg350-f7e039d3c2d62a51f619e4b4a246fd8b58862609.tar.gz scummvm-rg350-f7e039d3c2d62a51f619e4b4a246fd8b58862609.tar.bz2 scummvm-rg350-f7e039d3c2d62a51f619e4b4a246fd8b58862609.zip |
TOON: fix strings without null termination
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toon/subtitles.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/toon/subtitles.cpp b/engines/toon/subtitles.cpp index 1349778753..8996e3bb41 100644 --- a/engines/toon/subtitles.cpp +++ b/engines/toon/subtitles.cpp @@ -72,6 +72,7 @@ bool SubtitleRenderer::load(const Common::String &video) { char srtfile[20] = {0}; strcpy(srtfile, video.c_str()); + srtfile[19] = '\0'; int ln = strlen(srtfile); srtfile[ln - 3] = 't'; srtfile[ln - 2] = 's'; |