aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-14 15:07:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-14 15:07:12 +0200
commit992ca1ad2be63adf6f5c1908d27a0e3deeb0f86f (patch)
treeeb23ca2e0626861f52fbcf882bf1991e315311b5
parent734adbe9b74b3a51724663cc730fb078f923d98f (diff)
Fix bug in string::assign() call
-rw-r--r--bdep/new.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index f88f285..7276dfd 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -92,7 +92,7 @@ namespace bdep
if (n.compare (0, 3, "lib") != 0)
fail << "library name does not start with 'lib'";
- s.assign (n, 3);
+ s.assign (n, 3, string::npos);
}
dir_path prj (n);