mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-07-10 08:47:33 +00: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) {
|
void StringToVector(const string &str, vector<char> &vec) {
|
||||||
vec.reserve(str.length() + 1);
|
vec.resize(str.length() + 1);
|
||||||
std::copy(str.begin(), str.end(),
|
std::copy(str.begin(), str.end(),
|
||||||
vec.begin());
|
vec.begin());
|
||||||
vec[str.length()] = '\0';
|
vec[str.length()] = '\0';
|
||||||
|
|
Loading…
Reference in a new issue