aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/version/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-10 07:41:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-02-10 07:41:39 +0200
commitafe22af6ad346c653ed02109835e88348f4ecf5b (patch)
tree3a78c59d4b18543a54ab08e5d00cc41d66632e88 /libbuild2/version/init.cxx
parent03eeea3b6c083ec9f9e755a2505d559b70c6cf0d (diff)
Fix issue with string::assign() call without third argument
Diffstat (limited to 'libbuild2/version/init.cxx')
-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);
}