Package: rtpproxy / 1.2.1-2.1

syslog_format.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: add format argument in rtpp_syslog_async.c
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614476

Index: rtpproxy-1.2.1/rtpp_syslog_async.c
===================================================================
--- rtpproxy-1.2.1.orig/rtpp_syslog_async.c	2009-10-06 21:12:41.000000000 +1100
+++ rtpproxy-1.2.1/rtpp_syslog_async.c	2014-02-16 13:55:34.267703849 +1100
@@ -85,7 +85,7 @@
         /* main work here */
         switch (wi->item_type) {
             case SYSLOG_ITEM_ASYNC_WRITE:
-                syslog(wi->priority, wi->data);
+                syslog(wi->priority, "%s", wi->data);
                 break;
 
             case SYSLOG_ITEM_ASYNC_EXIT: