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
This commit is contained in:
Mark Spencer
2004-04-13 04:27:06 +00:00
parent e15b5a83d5
commit c512310934

View File

@@ -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); levels[level], (long)pthread_self(), file, line, function);
} }
vsnprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), fmt, args); vsnprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), fmt, args);
syslog(syslog_level_map[level], buf); syslog(syslog_level_map[level], "%s", buf);
} }
/* /*