From aa505823f56cf73db04b38ed2a21dbe9724aaf8a Mon Sep 17 00:00:00 2001 From: JugadorXEI Date: Tue, 13 Apr 2021 06:56:14 +0200 Subject: [PATCH] Simply return address, don't allow self_ip to be possibly written as something else --- src/discord.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/discord.c b/src/discord.c index d6e778e36..4141310cb 100644 --- a/src/discord.c +++ b/src/discord.c @@ -362,8 +362,7 @@ static const char *DRPC_GetServerIP(void) { // We're not the server, so we could successfully get the IP! // No need to do anything else :) - strcpy(self_ip, address); - return self_ip; + return address; } }