mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Replace memcmp to strcmp
This commit is contained in:
parent
c5e249736f
commit
7ccb4b2db1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user