]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
(OPENZAP-33) format not a string literal and no format arguments
authorMichael Jerris <mike@jerris.com>
Mon, 3 Nov 2008 20:46:43 +0000 (20:46 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 3 Nov 2008 20:46:43 +0000 (20:46 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@606 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/mod_openzap/mod_openzap.c

index 0eeb9d21158d8c641ccbd2a3f8e86a3c46d94629..89678af149077724ca03fcd2f5dbaf3912456cd1 100644 (file)
@@ -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);
        }