diff options
Diffstat (limited to 'engines/toon')
-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'; |