mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 00:04:16 +01:00
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
@ -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 New Issue
Block a user