From 086f8b6e68228c9081c15bee03975db4024114ad Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 23 May 2019 15:33:26 +0200 Subject: Improve path_traits convenience overloads --- libbutl/process.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libbutl/process.cxx') 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 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)) { -- cgit v1.1