Change up strcasecmp/strncasecmp to be more C++y
This commit is contained in:
+2
-2
@@ -977,8 +977,8 @@ void Memory_Init (void *buf, int size)
|
||||
auto p = common::check_param ("-zone");
|
||||
if (p.has_value())
|
||||
{
|
||||
if (p < com_argc-1)
|
||||
zonesize = std::atoi (com_argv[p.value()+1]) * 1024;
|
||||
if (p < common::_argv.size()-1)
|
||||
zonesize = std::atoi (common::_argv[p.value()+1].c_str()) * 1024;
|
||||
else
|
||||
Sys_Error ("Memory_Init: you must specify a size in KB after -zone");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user