mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
Bugfix in the wdirname function
darcs-hash:20060908141041-ac50b-8650eea2d071606654cad94553344ed12b4bf609.gz
This commit is contained in:
5
wutil.c
5
wutil.c
@@ -404,7 +404,7 @@ wchar_t *wrealpath(const wchar_t *pathname, wchar_t *resolved_path)
|
||||
#endif
|
||||
|
||||
|
||||
wchar_t *wdirname( const wchar_t *path )
|
||||
wchar_t *wdirname( wchar_t *path )
|
||||
{
|
||||
static string_buffer_t *sb = 0;
|
||||
if( sb )
|
||||
@@ -418,7 +418,8 @@ wchar_t *wdirname( const wchar_t *path )
|
||||
return 0;
|
||||
|
||||
sb_printf( sb, L"%s", narrow_res );
|
||||
return (wchar_t *)sb->buff;
|
||||
wcscpy( path, (wchar_t *)sb->buff );
|
||||
return path;
|
||||
}
|
||||
|
||||
wchar_t *wbasename( const wchar_t *path )
|
||||
|
||||
Reference in New Issue
Block a user