summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/version.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/version.cc b/src/version.cc
index 7e805c1..b3a93d1 100644
--- a/src/version.cc
+++ b/src/version.cc
@@ -26,7 +26,7 @@ void ParseVersion(const string& version, int* major, int* minor) {
*minor = 0;
if (end != string::npos) {
size_t start = end + 1;
- end = version.find(start, '.');
+ end = version.find('.', start);
*minor = atoi(version.substr(start, end).c_str());
}
}
@@ -54,3 +54,4 @@ void CheckNinjaVersion(const string& version) {
+