Author: hauke
Date: 2014-07-03 22:00:15 +0200 (Thu, 03 Jul 2014)
New Revision: 41497

Added:
   packages/libs/libipfix/patches/130-fix-string-problems.patch
Log:
libipfix: fix build

Signed-off-by: Hauke Mehrtens <[email protected]>


Added: packages/libs/libipfix/patches/130-fix-string-problems.patch
===================================================================
--- packages/libs/libipfix/patches/130-fix-string-problems.patch                
                (rev 0)
+++ packages/libs/libipfix/patches/130-fix-string-problems.patch        
2014-07-03 20:00:15 UTC (rev 41497)
@@ -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 );
+ }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to