fix the string being truncuated

This commit is contained in:
Alug committed 2024-12-17 00:53:35 +01:00
1 parent 991e1a2844
commit ff4a27de0e
1 file changed
+2 -2
+2 -2
View File
@@ -494,7 +494,7 @@ void DRPC_UpdatePresence(void)
if (!drpc_init) DRPC_Init();
char detailstr[48+1];
char detailstr[256+1];
char mapimg[8+1];
char mapname[5+21+21+2+1];
@@ -589,7 +589,7 @@ void DRPC_UpdatePresence(void)
{
DRPC_UpdateGameModes();
snprintf(detailstr, 48, "%s%s%s",
snprintf(detailstr, 256, "%s%s%s",
(strlen(gamemodes) != 0) ? gamemodes : "",
(gametype == GT_RACE) ? va(" | %s", kartspeed_cons_t[gamespeed].strvalue) : "",
(encoremode == true) ? " | Encore" : ""