Fix the path of srb2home not being taken into account when loading the last IPs joined log file

This commit is contained in:
SteelT 2022-09-02 15:25:57 -04:00
parent 5c4ff2ead0
commit c95fed770e

View file

@ -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)