mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 23:21:15 -03:00
Since cwd is a path, use PATH_MAX and not NAME_MAX
This commit is contained in:
@@ -137,7 +137,7 @@ bool wreaddir_for_dirs(DIR *dir, wcstring *out_name) {
|
||||
}
|
||||
|
||||
const wcstring wgetcwd() {
|
||||
char cwd[NAME_MAX];
|
||||
char cwd[PATH_MAX];
|
||||
char *res = getcwd(cwd, sizeof(cwd));
|
||||
if (res) {
|
||||
return str2wcstring(res);
|
||||
|
||||
Reference in New Issue
Block a user