diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-14 15:07:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-14 15:07:12 +0200 |
commit | 992ca1ad2be63adf6f5c1908d27a0e3deeb0f86f (patch) | |
tree | eb23ca2e0626861f52fbcf882bf1991e315311b5 | |
parent | 734adbe9b74b3a51724663cc730fb078f923d98f (diff) |
Fix bug in string::assign() call
-rw-r--r-- | bdep/new.cxx | 2 |
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); |