File: syslog_format.patch

package info (click to toggle)
rtpproxy 1.2.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,104 kB
  • ctags: 484
  • sloc: sh: 8,397; ansic: 6,219; xml: 461; makefile: 23
file content (16 lines) | stat: -rw-r--r-- 688 bytes parent folder | download | duplicates (2)
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: