Don't allow the format to be doubly handled
authorMark Spencer <markster@digium.com>
Tue, 13 Apr 2004 04:27:06 +0000 (04:27 +0000)
committerMark Spencer <markster@digium.com>
Tue, 13 Apr 2004 04:27:06 +0000 (04:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2681 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index 5157420..0fadf2e 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -440,7 +440,7 @@ static void ast_log_vsyslog(int level, const char *file, int line, const char *f
                 levels[level], (long)pthread_self(), file, line, function);
     }
     vsnprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), fmt, args);
-    syslog(syslog_level_map[level], buf);
+    syslog(syslog_level_map[level], "%s", buf);
 }
 
 /*