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
1.0
Mark Spencer 21 years ago
parent e15b5a83d5
commit c512310934

@ -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);
}
/*

Loading…
Cancel
Save