mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Change a few chars to be long
darcs-hash:20060213111023-ac50b-5ad5ddf9beb72117fc1dc81c048a83e5480bc510.gz
This commit is contained in:
parent
a015472739
commit
a5dde6021c
1 changed files with 3 additions and 3 deletions
6
parser.c
6
parser.c
|
@ -708,7 +708,7 @@ wchar_t *get_filename( const wchar_t *cmd )
|
|||
|
||||
debug( 2, L"get_filename( '%ls' )", cmd );
|
||||
|
||||
if(wcschr( cmd, '/' ) != 0 )
|
||||
if(wcschr( cmd, L'/' ) != 0 )
|
||||
{
|
||||
if( waccess( cmd, X_OK )==0 )
|
||||
{
|
||||
|
@ -748,9 +748,9 @@ wchar_t *get_filename( const wchar_t *cmd )
|
|||
{
|
||||
int path_len = wcslen( nxt_path );
|
||||
wcscpy( new_cmd, nxt_path );
|
||||
if( new_cmd[path_len-1] != '/' )
|
||||
if( new_cmd[path_len-1] != L'/' )
|
||||
{
|
||||
new_cmd[path_len++]='/';
|
||||
new_cmd[path_len++]=L'/';
|
||||
}
|
||||
wcscpy( &new_cmd[path_len], cmd );
|
||||
if( waccess( new_cmd, X_OK )==0 )
|
||||
|
|
Loading…
Reference in a new issue