mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Truncation is intentional - see if using the return value and storing it
in a local var can work around the warning
This commit is contained in:
parent
a06f3b98ce
commit
e954a69708
@ -4859,10 +4859,10 @@ static void relay_chat(netplay_t *netplay, const char *nick, const char *msg)
|
||||
|
||||
static void show_chat(netplay_t *netplay, const char *nick, const char *msg)
|
||||
{
|
||||
char formatted_chat[NETPLAY_CHAT_MAX_SIZE + 64];
|
||||
|
||||
/* Truncate the message if necessary. */
|
||||
snprintf(formatted_chat, sizeof(formatted_chat), "%s: %s", nick, msg);
|
||||
char formatted_chat[NETPLAY_CHAT_MAX_SIZE];
|
||||
/* Truncate the message if necessary. Truncation here is intentional. */
|
||||
int ret = snprintf(formatted_chat, sizeof(formatted_chat), "%s: %s", nick, msg);
|
||||
(void)ret;
|
||||
|
||||
RARCH_LOG("[Netplay] %s\n", formatted_chat);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user