fix warning: format not a string literal and no format arguments

This commit is contained in:
Ben Noordhuis 2012-03-17 22:32:01 +01:00
parent 7c4e1f1fcb
commit 3311b00ae6
4 changed files with 5 additions and 5 deletions

View File

@ -694,7 +694,7 @@ void DBrush::SaveToFile( FILE *pFile ){
( *pp )->texInfo.m_fScale[0], ( *pp )->texInfo.m_fScale[0], ( *pp )->texInfo.m_fScale[0], ( *pp )->texInfo.m_fScale[0],
( *pp )->texInfo.m_fRotate ); ( *pp )->texInfo.m_fRotate );
fprintf( pFile, buffer ); fprintf( pFile, "%s", buffer );
} }
fprintf( pFile, "}\n" ); fprintf( pFile, "}\n" );

View File

@ -65,7 +65,7 @@ void Syn_Printf( const char *text, ... ){
va_start( args, text ); va_start( args, text );
vsnprintf( buf, BUFFER_SIZE, text, args ); vsnprintf( buf, BUFFER_SIZE, text, args );
buf[BUFFER_SIZE - 1] = 0; buf[BUFFER_SIZE - 1] = 0;
printf( buf ); printf( "%s", buf );
va_end( args ); va_end( args );
} }
} }

View File

@ -1145,7 +1145,7 @@ void RunBsp( char *command ){
Error( "Can't write to %s", batpath ); Error( "Can't write to %s", batpath );
} }
fprintf( hFile, "#!/bin/sh \n\n" ); fprintf( hFile, "#!/bin/sh \n\n" );
fprintf( hFile, strSys.GetBuffer() ); fprintf( hFile, "%s", strSys.GetBuffer() );
fclose( hFile ); fclose( hFile );
chmod( batpath, 0744 ); chmod( batpath, 0744 );
#endif #endif
@ -1158,7 +1158,7 @@ void RunBsp( char *command ){
if ( !hFile ) { if ( !hFile ) {
Error( "Can't write to %s", batpath ); Error( "Can't write to %s", batpath );
} }
fprintf( hFile, strSys.GetBuffer() ); fprintf( hFile, "%s", strSys.GetBuffer() );
fclose( hFile ); fclose( hFile );
#endif #endif

View File

@ -264,7 +264,7 @@ void FPrintf( int flag, char *buf ){
static qboolean bGotXML = qfalse; static qboolean bGotXML = qfalse;
char level[2]; 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? // 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 ) { if ( flag == SYS_NOXML ) {