fix std::string buffer overflow in scaninc

This commit is contained in:
camthesaxman
2017-07-28 17:07:01 -05:00
parent bb0cad7c07
commit 0a856fda0c
+1 -1
View File
@@ -137,7 +137,7 @@ std::string AsmFile::ReadPath()
FATAL_INPUT_ERROR("path is too long");
}
return std::string(m_buffer, startPos, length);
return std::string(m_buffer + startPos, length);
}
void AsmFile::SkipEndOfLineComment()