libipfix: fix build
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@41497 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
39151a1956
commit
2776e89dce
29
libs/libipfix/patches/130-fix-string-problems.patch
Normal file
29
libs/libipfix/patches/130-fix-string-problems.patch
Normal file
@ -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 );
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user