Change up strcasecmp/strncasecmp to be more C++y

This commit is contained in:
iikorni
2026-08-30 16:40:12 -05:00
parent 7a697986c6
commit da2a9a8fbc
32 changed files with 351 additions and 790 deletions
+4 -4
View File
@@ -84,12 +84,12 @@ sys_socket_t UDP_Init (void)
auto i = common::check_param ("-ip");
if (i.has_value())
{
if (i.value() < com_argc-1)
if (i.value() < common::_argv.size()-1)
{
myAddr = inet_addr(com_argv[i.value() + 1]);
myAddr = inet_addr(common::_argv[i.value() + 1].c_str());
if (myAddr == INADDR_NONE)
Sys_Error ("%s is not a valid IP address", com_argv[i.value() + 1]);
strcpy(my_tcpip_address, com_argv[i.value() + 1]);
Sys_Error ("%s is not a valid IP address", common::_argv[i.value() + 1].c_str());
strcpy(my_tcpip_address, common::_argv[i.value() + 1].c_str());
}
else
{