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/shm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shm.cc') diff --git a/src/shm.cc b/src/shm.cc index 98dd526..0e2153a 100644 --- a/src/shm.cc +++ b/src/shm.cc @@ -126,7 +126,7 @@ static void ErrorHandler(const char *Text){ if(SHM != NULL){ SHM->Errors += 1; if(SHM->Errors <= 0x8000){ - Log("error", Text); + Log("error", "%s", Text); if(SHM->Errors == 0x8000){ Log("error", "Zu viele Fehler. Keine weitere Protokollierung.\n"); } -- cgit v1.2.3