mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-05 19:51:45 +00:00
Merge pull request #93 from encounter/fix/stage2-args
Fix stage2_args_t mismatch
This commit is contained in:
commit
4ada3b6195
3 changed files with 2 additions and 5 deletions
|
@ -90,7 +90,7 @@ static void __program_parse_argc_argv(int argc, char *argdata) {
|
||||||
strcpy((char *)__program_argv[0], argdata);
|
strcpy((char *)__program_argv[0], argdata);
|
||||||
pos += len + 1;
|
pos += len + 1;
|
||||||
|
|
||||||
__program_argv[1] = malloc(len + 1);
|
__program_argv[1] = malloc(sizeof(stage2_args_t));
|
||||||
if (__program_argv[1] == NULL) {
|
if (__program_argv[1] == NULL) {
|
||||||
generic_panic();
|
generic_panic();
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,9 +21,6 @@ typedef struct {
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint32_t version;
|
uint32_t version;
|
||||||
uint32_t *lfb;
|
|
||||||
uint32_t console_row;
|
|
||||||
uint32_t console_col;
|
|
||||||
char bct0[BCTO_MAX_SIZE];
|
char bct0[BCTO_MAX_SIZE];
|
||||||
} stage2_args_t;
|
} stage2_args_t;
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ static void __program_parse_argc_argv(int argc, char *argdata) {
|
||||||
strcpy((char *)__program_argv[0], argdata);
|
strcpy((char *)__program_argv[0], argdata);
|
||||||
pos += len + 1;
|
pos += len + 1;
|
||||||
|
|
||||||
__program_argv[1] = malloc(len + 1);
|
__program_argv[1] = malloc(sizeof(stage2_args_t));
|
||||||
if (__program_argv[1] == NULL) {
|
if (__program_argv[1] == NULL) {
|
||||||
generic_panic();
|
generic_panic();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue