From e2ba7cd29617ae05087ad3d25c55a2eb8ce607a3 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 28 May 2026 23:56:29 -0300 Subject: fix issues and warnings when compiling with glibc < 2.32 (#57, #58) This also fixes some inconsistencies such as mixing both strerror and strerrordesc_np, and possible formatting issues. --- src/sending.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sending.cc') diff --git a/src/sending.cc b/src/sending.cc index eb78e82..1661836 100644 --- a/src/sending.cc +++ b/src/sending.cc @@ -349,7 +349,7 @@ void SendResult(TConnection *Connection, RESULT r){ } if(Message != NULL){ - SendMessage(Connection, TALK_FAILURE_MESSAGE, Message); + SendMessage(Connection, TALK_FAILURE_MESSAGE, "%s", Message); if(r == ENTERPROTECTIONZONE || r == NOTINVITED || r == MOVENOTPOSSIBLE){ SendSnapback(Connection); } @@ -1721,7 +1721,7 @@ void BroadcastMessage(int Mode, const char *Text, ...){ TConnection *Connection = GetFirstConnection(); while(Connection != NULL){ if(Connection->Live()){ - SendMessage(Connection, Mode, Message); + SendMessage(Connection, Mode, "%s", Message); } Connection = GetNextConnection(); } -- cgit v1.2.3