From c5be030077d5a148eb376b5acb78af1499c0a58b Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 31 Jan 2010 23:28:12 +0000 Subject: Silenced some more cppcheck warnings. svn-id: r47785 --- engines/scumm/detection.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/scumm') diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index bd9fc06655..e1a2a4866a 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -180,6 +180,7 @@ static Common::String generateFilenameForDetection(const char *pattern, Filename error("generateFilenameForDetection: Unsupported genMethod"); } + buf[sizeof(buf) - 1] = 0; return buf; } -- cgit v1.2.3