From 20d9bdcb77a5218182ba1009cd1ad9e1fa74dd5b Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 3 Jul 2014 20:00:15 +0000 Subject: [PATCH] libipfix: fix build Signed-off-by: Hauke Mehrtens SVN-Revision: 41497 --- .../patches/130-fix-string-problems.patch | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 libs/libipfix/patches/130-fix-string-problems.patch diff --git a/libs/libipfix/patches/130-fix-string-problems.patch b/libs/libipfix/patches/130-fix-string-problems.patch new file mode 100644 index 0000000000..ab967ecf41 --- /dev/null +++ b/libs/libipfix/patches/130-fix-string-problems.patch @@ -0,0 +1,29 @@ +--- a/lib/mlog.c ++++ b/lib/mlog.c +@@ -60,7 +60,7 @@ void debugf ( char fmt[], ... ) + va_end(args); + + fprintf ( stderr, "DEBUG <" ); +- fprintf ( stderr, tmpbuf ); ++ fprintf ( stderr, "%s", tmpbuf ); + fprintf ( stderr, ">\n" ); + fflush ( stderr ); + #endif +@@ -80,7 +80,7 @@ void errorf ( char fmt[], ... ) + (void) vsnprintf( tmpbuf, sizeof(tmpbuf), fmt, args ); + va_end(args); + +- fprintf ( stderr, tmpbuf ); ++ fprintf ( stderr, "%s", tmpbuf ); + } + + /*-------------------------------------------------- +@@ -104,7 +104,7 @@ void mlogf ( int vlevel, char fmt[], ... + (void) vsnprintf( tmpbuf, sizeof(tmpbuf), fmt, args ); + va_end(args); + +- fprintf( mlog_fp, tmpbuf ); ++ fprintf( mlog_fp, "%s", tmpbuf ); + if ( mlog_vlevel > 1 ) + fflush( mlog_fp ); + } -- 2.30.2