[server] Replace memcmp to strcmp

This commit is contained in:
RD42 2023-11-14 20:45:30 +08:00
parent c5e249736f
commit 7ccb4b2db1

View File

@ -217,7 +217,7 @@ int main (int argc, char** argv)
// Exec the server config!
pConsole->Execute("exec server");
if ( !memcmp(pConsole->GetStringVariable("rcon_password"), "changeme", 9 ) )
if ( !strcmp(pConsole->GetStringVariable("rcon_password"), "changeme" ) )
{
logprintf("Error: Your password must be changed from the default password, please change it.");
return 0;