Fix for bug: debug checks for vector::operator[] fail in breakpad.

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@712 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
SiyangXie@gmail.com 2010-10-13 23:45:20 +00:00
parent 5b117cf53a
commit d95350e97a

View file

@ -67,7 +67,7 @@ bool Tokenize(char *line,
}
void StringToVector(const string &str, vector<char> &vec) {
vec.reserve(str.length() + 1);
vec.resize(str.length() + 1);
std::copy(str.begin(), str.end(),
vec.begin());
vec[str.length()] = '\0';