diff options
author | ladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-09-19 20:43:38 +0000 |
---|---|---|
committer | ladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-09-19 20:43:38 +0000 |
commit | 48309a2dbcce033c68eb0ad3ecac8fae7c544eda (patch) | |
tree | 034670f4e16d0c388c5d3e22b02cc2d9427c1cc9 /src/common/mac | |
parent | Issue 208: Reviewer waylonis (diff) | |
download | breakpad-48309a2dbcce033c68eb0ad3ecac8fae7c544eda.tar.xz |
Issue 208: Reviewer waylonis
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@210 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/mac')
-rw-r--r-- | src/common/mac/string_utilities.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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) |