better tag for nxlink host ip

This commit is contained in:
Dave Murphy 2018-03-16 10:18:06 +00:00
parent 1b095eafcf
commit a1c07b7e47

View File

@ -142,10 +142,10 @@ void argvSetup(void)
if ( __system_argc > 1 &&
strlen(__system_argv[__system_argc - 1]) == 16 &&
strncmp(__system_argv[__system_argc - 1], "NXLINKED", 8) == 0 )
strncmp(&__system_argv[__system_argc - 1][8], "_NXLINK_", 8) == 0 )
{
__system_argc--;
__nxlink_host.s_addr = strtoul(&__system_argv[__system_argc][8], NULL, 16);
__nxlink_host.s_addr = strtoul(__system_argv[__system_argc], NULL, 16);
}
__system_argv[__system_argc] = NULL;