diff options
-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); |