diff options
author | yenatch <yenatch@gmail.com> | 2017-07-29 14:57:06 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2017-07-29 14:57:06 -0400 |
commit | b21c159b08c57a948edb268ac9b9b5baf6b4332d (patch) | |
tree | 9d5df19789a1a37eabd8e68cdba828f26b39b610 /tools/scaninc/c_file.cpp | |
parent | f0f781925791085b1944934ab95e0344e524536e (diff) |
scaninc: fix buffer overflow
Diffstat (limited to 'tools/scaninc/c_file.cpp')
-rw-r--r-- | tools/scaninc/c_file.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |