]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix warning: format not a string literal and no format arguments
authorBen Noordhuis <info@bnoordhuis.nl>
Sat, 17 Mar 2012 21:32:01 +0000 (22:32 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 18 Mar 2012 01:13:11 +0000 (02:13 +0100)
contrib/bobtoolz/DBrush.cpp
libs/synapse/synapse.cpp
radiant/main.cpp
tools/quake3/common/inout.c

index 34afabfea52a288ece82dcda0844d96059666cdc..3e54e79717b554c6857a43bf87c721fb48dedc85 100644 (file)
@@ -694,7 +694,7 @@ void DBrush::SaveToFile( FILE *pFile ){
                                 ( *pp )->texInfo.m_fScale[0], ( *pp )->texInfo.m_fScale[0],
                                 ( *pp )->texInfo.m_fRotate );
 
-               fprintf( pFile, buffer );
+               fprintf( pFile, "%s", buffer );
        }
 
        fprintf( pFile, "}\n" );
index 482204fdd0e0faf2e051036de1a2cd344ede4475..c4dd78cce5ad4087b1645a6a2080ef657c00b048 100644 (file)
@@ -65,7 +65,7 @@ void Syn_Printf( const char *text, ... ){
                va_start( args, text );
                vsnprintf( buf, BUFFER_SIZE, text, args );
                buf[BUFFER_SIZE - 1] = 0;
-               printf( buf );
+               printf( "%s", buf );
                va_end( args );
        }
 }
index 8e26926f7cb6583284d1e0d429bd8d862f71c10a..2fa5221419e921720380c648aa507a1ccda815a2 100644 (file)
@@ -1145,7 +1145,7 @@ void RunBsp( char *command ){
                        Error( "Can't write to %s", batpath );
                }
                fprintf( hFile, "#!/bin/sh \n\n" );
-               fprintf( hFile, strSys.GetBuffer() );
+               fprintf( hFile, "%s", strSys.GetBuffer() );
                fclose( hFile );
                chmod( batpath, 0744 );
 #endif
@@ -1158,7 +1158,7 @@ void RunBsp( char *command ){
                if ( !hFile ) {
                        Error( "Can't write to %s", batpath );
                }
-               fprintf( hFile, strSys.GetBuffer() );
+               fprintf( hFile, "%s", strSys.GetBuffer() );
                fclose( hFile );
 #endif
 
index 74a111b8eaa5575515019cfc69e660ffcb3e7655..acf492a295d840be308741607564a256e83ec90f 100644 (file)
@@ -264,7 +264,7 @@ void FPrintf( int flag, char *buf ){
        static qboolean bGotXML = qfalse;
        char level[2];
 
-       printf( buf );
+       printf( "%s", buf );
 
        // the following part is XML stuff only.. but maybe we don't want that message to go down the XML pipe?
        if ( flag == SYS_NOXML ) {