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

@@ -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