From afe22af6ad346c653ed02109835e88348f4ecf5b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Feb 2022 07:41:39 +0200 Subject: Fix issue with string::assign() call without third argument --- libbuild2/version/init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.1