mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
more checking of NXLINKED arg
This commit is contained in:
parent
2ecdc53446
commit
8ab9e7e52e
@ -140,9 +140,11 @@ void argvSetup(void)
|
||||
__system_argc++;
|
||||
}
|
||||
|
||||
if (strncmp(__system_argv[__system_argc - 1], "NXLINKED", 8) == 0 ) {
|
||||
if ( __system_argc > 1 &&
|
||||
strlen(__system_argv[__system_argc - 1]) == 16 &&
|
||||
strncmp(__system_argv[__system_argc - 1], "NXLINKED", 8) == 0 )
|
||||
{
|
||||
__system_argc--;
|
||||
|
||||
__nxlink_host.s_addr = strtoul(&__system_argv[__system_argc][8], NULL, 16);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user