From d95350e97a1edc7757f668c35b045408512db5ba Mon Sep 17 00:00:00 2001 From: "SiyangXie@gmail.com" Date: Wed, 13 Oct 2010 23:45:20 +0000 Subject: 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 --- src/processor/tokenize.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/processor/tokenize.cc b/src/processor/tokenize.cc index 8b1cdb3a..85f77821 100644 --- a/src/processor/tokenize.cc +++ b/src/processor/tokenize.cc @@ -67,7 +67,7 @@ bool Tokenize(char *line, } void StringToVector(const string &str, vector &vec) { - vec.reserve(str.length() + 1); + vec.resize(str.length() + 1); std::copy(str.begin(), str.end(), vec.begin()); vec[str.length()] = '\0'; -- cgit v1.2.1