mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[server] Replace memcmp to strcmp
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user