(OPENZAP-33) format not a string literal and no format arguments
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@606 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
9d7405d768
commit
50beaaf2ea
|
@ -1518,7 +1518,7 @@ static void zap_logger(const char *file, const char *func, int line, int level,
|
|||
va_start(ap, fmt);
|
||||
|
||||
if (switch_vasprintf(&data, fmt, ap) != -1) {
|
||||
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, (char *)func, line, NULL, level, data);
|
||||
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, (char *)func, line, NULL, level, "%s", data);
|
||||
free(data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue