aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/version
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/version')
-rw-r--r--libbuild2/version/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/version/init.cxx b/libbuild2/version/init.cxx
index 0a6a964..abcb728 100644
--- a/libbuild2/version/init.cxx
+++ b/libbuild2/version/init.cxx
@@ -219,7 +219,7 @@ namespace build2
if (v.size () > p + 2 && v.find ('=', p + 2) != string::npos)
continue;
- vc.assign (v, p);
+ vc.assign (v, p, string::npos);
trim (vc);
}