Simply return address, don't allow self_ip to be possibly written as something else

This commit is contained in:
JugadorXEI 2021-04-13 06:56:14 +02:00 committed by toaster
parent 3f53d768d1
commit aa505823f5

View file

@ -362,8 +362,7 @@ static const char *DRPC_GetServerIP(void)
{ {
// We're not the server, so we could successfully get the IP! // We're not the server, so we could successfully get the IP!
// No need to do anything else :) // No need to do anything else :)
strcpy(self_ip, address); return address;
return self_ip;
} }
} }