From c95fed770e134d9bf9d3eebca4fd2564e36baf4a Mon Sep 17 00:00:00 2001 From: SteelT Date: Fri, 2 Sep 2022 15:25:57 -0400 Subject: [PATCH] Fix the path of srb2home not being taken into account when loading the last IPs joined log file --- src/m_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/m_misc.c b/src/m_misc.c index 30fe5b525..0628ef3b6 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -542,11 +542,11 @@ void M_LoadJoinedIPs(void) { FILE *f = NULL; UINT8 i = 0; - char filepath[255]; + char *filepath; char *s; char content[255]; // 255 is more than long enough! - strcpy(filepath, IPLOGFILE); + filepath = va("%s"PATHSEP"%s", srb2home, IPLOGFILE); f = fopen(filepath, "r"); if (f == NULL)