File: 0046-platinum-fix-format-security-warning.patch

package info (click to toggle)
kodi 2%3A20.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 143,820 kB
  • sloc: cpp: 664,925; xml: 68,398; ansic: 37,223; python: 6,903; sh: 4,209; javascript: 2,325; makefile: 1,754; perl: 969; java: 513; cs: 390; objc: 340
file content (22 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From 75dca8c816de2d65aee5117876b3c7110ad4cd47 Mon Sep 17 00:00:00 2001
From: Rechi <Rechi@users.noreply.github.com>
Date: Wed, 3 Jan 2018 10:31:43 +0100
Subject: [PATCH] [libUPnP][platinum] fix format-security warning

---
 lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp
index 0a43dab603..feeb537648 100644
--- a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp
+++ b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp
@@ -631,7 +631,7 @@ args:
     msg = "Invalid args";
 
 failure:
-    NPT_LOG_WARNING(msg);
+    NPT_LOG_WARNING_1("%s", msg);
     action->SetError(err, msg);
     return NPT_FAILURE;
 }