summaryrefslogtreecommitdiff
path: root/tools/scaninc/c_file.cpp
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-07-29 14:57:06 -0400
committeryenatch <yenatch@gmail.com>2017-07-29 14:57:06 -0400
commitb21c159b08c57a948edb268ac9b9b5baf6b4332d (patch)
tree9d5df19789a1a37eabd8e68cdba828f26b39b610 /tools/scaninc/c_file.cpp
parentf0f781925791085b1944934ab95e0344e524536e (diff)
scaninc: fix buffer overflow
Diffstat (limited to 'tools/scaninc/c_file.cpp')
-rw-r--r--tools/scaninc/c_file.cpp2
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);
}