mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 06:26:15 +08:00
Bugfix in the wdirname function
darcs-hash:20060908141041-ac50b-8650eea2d071606654cad94553344ed12b4bf609.gz
This commit is contained in:
parent
45d2b89780
commit
eafa0a7169
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 )
|
||||
|
|
Loading…
Reference in New Issue
Block a user