mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 14:11:43 +00:00
stage2: fix init malloc size for stage2_args_t
This commit is contained in:
parent
6dbd8d0aae
commit
290fb356a1
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ static void __program_parse_argc_argv(int argc, char *argdata) {
|
|||
strcpy((char *)__program_argv[0], argdata);
|
||||
pos += len + 1;
|
||||
|
||||
__program_argv[1] = malloc(len + 1);
|
||||
__program_argv[1] = malloc(sizeof(stage2_args_t));
|
||||
if (__program_argv[1] == NULL) {
|
||||
generic_panic();
|
||||
}
|
||||
|
|
|
@ -90,7 +90,7 @@ static void __program_parse_argc_argv(int argc, char *argdata) {
|
|||
strcpy((char *)__program_argv[0], argdata);
|
||||
pos += len + 1;
|
||||
|
||||
__program_argv[1] = malloc(len + 1);
|
||||
__program_argv[1] = malloc(sizeof(stage2_args_t));
|
||||
if (__program_argv[1] == NULL) {
|
||||
generic_panic();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue