From 48309a2dbcce033c68eb0ad3ecac8fae7c544eda Mon Sep 17 00:00:00 2001 From: ladderbreaker Date: Wed, 19 Sep 2007 20:43:38 +0000 Subject: [PATCH] Issue 208: Reviewer waylonis git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@210 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/mac/string_utilities.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/mac/string_utilities.cc b/src/common/mac/string_utilities.cc index 57cc19ad..bdf3336c 100644 --- a/src/common/mac/string_utilities.cc +++ b/src/common/mac/string_utilities.cc @@ -67,7 +67,11 @@ unsigned int IntegerValueAtIndex(string &str, unsigned int idx) { end = str.size(); temp = str.substr(start, end - start); - result = atoi(temp.c_str()); + + if (found == idx) { + result = atoi(temp.c_str()); + } + start = str.find_first_of(digits, end + 1); if (start == string::npos)