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:
parent
5b117cf53a
commit
d95350e97a
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue