1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-23 02:42:09 +00:00

stage2: fix init malloc size for stage2_args_t

This commit is contained in:
Luke Street 2018-05-08 23:24:10 -04:00
parent 6dbd8d0aae
commit 290fb356a1
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}

View file

@ -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();
}