backport upstream-svn4235.patch to fix compile error

This commit is contained in:
Rolf Leggewie 2012-12-28 02:42:04 +01:00
parent 39c5fba4ac
commit aafb792a59
2 changed files with 15 additions and 0 deletions

View file

@ -1 +1,3 @@
01-edge.8.diff
upstream-svn4235.patch

13
debian/patches/upstream-svn4235.patch vendored Normal file
View file

@ -0,0 +1,13 @@
diff --git a/n2n.c b/n2n.c
index cfcfb74..ac98ad6 100644
--- a/n2n.c
+++ b/n2n.c
@@ -120,7 +120,7 @@ void traceEvent(int eventTraceLevel, char* file, int line, char * format, ...) {
}
snprintf(out_buf, sizeof(out_buf), "%s%s", extra_msg, buf);
- syslog(LOG_INFO, out_buf);
+ syslog(LOG_INFO, "%s", out_buf);
} else {
snprintf(out_buf, sizeof(out_buf), "%s [%11s:%4d] %s%s", theDate, file, line, extra_msg, buf);
printf("%s\n", out_buf);