diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-10 07:41:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-10 07:41:39 +0200 |
commit | afe22af6ad346c653ed02109835e88348f4ecf5b (patch) | |
tree | 3a78c59d4b18543a54ab08e5d00cc41d66632e88 | |
parent | 03eeea3b6c083ec9f9e755a2505d559b70c6cf0d (diff) |
Fix issue with string::assign() call without third argument
-rw-r--r-- | libbuild2/version/init.cxx | 2 |
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); } |