From d1da820a75a3a8f921c0b7cd1ae26bf6f7cb6729 Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 31 May 2010 15:16:46 +0000 Subject: Fix for DW2 engine abort with message "Cannot find file hienergy.sc!". Bug introduced by r49086 change which could trim the last character of filenames. svn-id: r49356 --- engines/tinsel/handle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/tinsel/handle.cpp') diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp index de573feee2..b006f718b7 100644 --- a/engines/tinsel/handle.cpp +++ b/engines/tinsel/handle.cpp @@ -288,7 +288,7 @@ void LoadFile(MEMHANDLE *pH) { } // extract and zero terminate the filename - Common::strlcpy(szFilename, pH->szName, sizeof(pH->szName)); + Common::strlcpy(szFilename, pH->szName, sizeof(pH->szName)+1); if (f.open(szFilename)) { // read the data -- cgit v1.2.3