From: Mark Spencer Date: Tue, 13 Apr 2004 04:27:06 +0000 (+0000) Subject: Don't allow the format to be doubly handled X-Git-Tag: 1.0.0-rc1~744 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5123109347ecd2cd6b646fe6f2cc9de9c52bf67;p=thirdparty%2Fasterisk.git Don't allow the format to be doubly handled git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2681 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/logger.c b/logger.c index 51574205a4..0fadf2edba 100755 --- 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); } /*