diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-05-23 15:33:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-05-23 15:33:26 +0200 |
commit | 086f8b6e68228c9081c15bee03975db4024114ad (patch) | |
tree | 689a020229099bcf47835dc359953177b3c45b23 /libbutl/process.cxx | |
parent | 37b050707ef99735fab834063032ef9a2e775fab (diff) |
Improve path_traits convenience overloads
Diffstat (limited to 'libbutl/process.cxx')
-rw-r--r-- | libbutl/process.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libbutl/process.cxx b/libbutl/process.cxx index 174e4ae..618c2aa 100644 --- a/libbutl/process.cxx +++ b/libbutl/process.cxx @@ -1073,8 +1073,7 @@ namespace butl // Windows. // const char* d (__argv[0]); - size_t n (strlen (d)); - if (const char* p = traits::rfind_separator (d, n)) + if (const char* p = traits::rfind_separator (d)) { string s (d, p - d + 1); // Include trailing slash. s.append (f, fn); @@ -1421,7 +1420,7 @@ namespace butl optional<string> batch; { const char* p (pp.effect_string ()); - const char* e (path::traits::find_extension (p, strlen (p))); + const char* e (path::traits::find_extension (p)); if (e != nullptr && (casecmp (e, ".bat") == 0 || casecmp (e, ".cmd") == 0)) { |