From b21c159b08c57a948edb268ac9b9b5baf6b4332d Mon Sep 17 00:00:00 2001 From: yenatch Date: Sat, 29 Jul 2017 14:57:06 -0400 Subject: scaninc: fix buffer overflow --- tools/scaninc/c_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/scaninc/c_file.cpp b/tools/scaninc/c_file.cpp index bba196857..c55ca9a8c 100644 --- a/tools/scaninc/c_file.cpp +++ b/tools/scaninc/c_file.cpp @@ -292,5 +292,5 @@ std::string CFile::ReadPath() m_pos++; - return std::string(m_buffer, startPos, m_pos - 1 - startPos); + return std::string(m_buffer + startPos, m_pos - 1 - startPos); } -- cgit v1.2.3