better tag for nxlink host ip

This commit is contained in:
Dave Murphy 2018-03-16 10:18:06 +00:00 committed by plutoo
parent 0ef568b06c
commit 1394891509

View File

@ -142,10 +142,10 @@ void argvSetup(void)
if ( __system_argc > 1 && if ( __system_argc > 1 &&
strlen(__system_argv[__system_argc - 1]) == 16 && 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--; __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; __system_argv[__system_argc] = NULL;