From ea56bd472c1426ad1f4f6835f3ca365bc9f22f1d 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 e6eabf9a..ba68da72 100644 --- a/src/discord.c +++ b/src/discord.c @@ -361,8 +361,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; } }