Skip to content
Snippets Groups Projects
Commit c5123109 authored by Mark Spencer's avatar Mark Spencer
Browse files

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
parent e15b5a83
No related branches found
No related tags found
No related merge requests found
...@@ -440,7 +440,7 @@ static void ast_log_vsyslog(int level, const char *file, int line, const char *f ...@@ -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);
} }
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment