Fix unreasonably small DefaultShellCommandOption size limit (#683)

This commit is contained in:
Sam Hocevar 2023-09-28 20:34:08 +02:00 committed by GitHub
parent 1146f366ed
commit 1ab66dd3d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ set_defaultshell()
HKEY reg_key = 0;
int tmp_len, ret = -1;
REGSAM mask = STANDARD_RIGHTS_READ | KEY_QUERY_VALUE | KEY_WOW64_64KEY;
wchar_t path_buf[PATH_MAX], option_buf[32], arg_buf[PATH_MAX];
wchar_t path_buf[PATH_MAX], option_buf[PATH_MAX], arg_buf[PATH_MAX];
char *pw_shellpath_local = NULL, *command_option_local = NULL, *shell_arguments_local = NULL;
errno = 0;