aboutsummaryrefslogtreecommitdiffhomepage
path: root/path.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 22:41:22 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 22:41:22 +0530
commitc9f4e91df88112ea4ff5f5d9a993c3655672ce93 (patch)
tree2614e98acaea7c8e912208850e9f814aa92cb49a /path.cpp
parentc0ed169fdcd153cc54e4aa392775aa4233786ed1 (diff)
Modified most functions in wutil.h/.cpp to use wcstring instead of wchar_t*, removing calls to c_str() while calling these functions in other files.
Diffstat (limited to 'path.cpp')
-rw-r--r--path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/path.cpp b/path.cpp
index 8a2d26e1..b866d6ef 100644
--- a/path.cpp
+++ b/path.cpp
@@ -81,10 +81,10 @@ bool path_get_path_string(const wcstring &cmd_str, wcstring &output, const env_v
if (path_len == 0) continue;
append_path_component(new_cmd, cmd_str);
- if( waccess( new_cmd.c_str(), X_OK )==0 )
+ if( waccess( new_cmd, X_OK )==0 )
{
struct stat buff;
- if( wstat( new_cmd.c_str(), &buff )==-1 )
+ if( wstat( new_cmd, &buff )==-1 )
{
if( errno != EACCES )
{