Change up strcasecmp/strncasecmp to be more C++y
This commit is contained in:
+2
-2
@@ -269,8 +269,8 @@ namespace console {
|
||||
}
|
||||
|
||||
void init() {
|
||||
if (const auto i = common::check_param("-consize"); i.has_value() && i.value() < com_argc - 1) {
|
||||
con_buffersize = std::atoi(com_argv[i.value() + 1]) * 1024;
|
||||
if (const auto i = common::check_param("-consize"); i.has_value() && i.value() < common::_argv.size() - 1) {
|
||||
con_buffersize = std::atoi(common::_argv[i.value() + 1].c_str()) * 1024;
|
||||
if (con_buffersize < CON_MINSIZE)
|
||||
con_buffersize = CON_MINSIZE;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user