Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > ef287836d52420c1c3c87d0767d8289d > files > 2

egoboo-2.7.7-2mdv2010.0.src.rpm

Index: egoboo-source-2.7.7/game/game.c
===================================================================
--- egoboo-source-2.7.7/game/game.c
+++ egoboo-source-2.7.7/game/game.c	2009-05-16 18:37:52.000000000 +0200
@@ -5150,7 +5150,7 @@
   // ZZ> This function kinda mimics fprintf for the output of
   //     btrue bfalse statements
 
-  fprintf( filewrite, text );
+  fprintf( filewrite, "%s", text );
   if ( truth )
   {
     fprintf( filewrite, "TRUE\n" );
@@ -5166,7 +5166,7 @@
 {
   // ZZ> This function kinda mimics fprintf for the output of
   //     SLASH CRUSH POKE HOLY EVIL FIRE ICE ZAP statements
-  fprintf( filewrite, text );
+  fprintf( filewrite, "%s", text );
 
   switch ( damagetype )
   {
@@ -5188,7 +5188,7 @@
   // ZZ> This function kinda mimics fprintf for the output of
   //     SLASH CRUSH POKE HOLY EVIL FIRE ICE ZAP statements
 
-  fprintf( filewrite, text );
+  fprintf( filewrite, "%s", text );
 
   if ( action >= ACTION_DA && action <= ACTION_DD )
     fprintf( filewrite, "WALK\n" );
@@ -5220,7 +5220,7 @@
   // ZZ> This function kinda mimics fprintf for the output of
   //     MALE FEMALE OTHER statements
 
-  fprintf( filewrite, text );
+  fprintf( filewrite, "%s", text );
 
   switch ( gender )
   {
@@ -5240,7 +5240,7 @@
   //     damage/stat pairs
   RANGE rng;
 
-  fprintf( filewrite, text );
+  fprintf( filewrite, "%s", text );
   if ( undo_pair_fp8( ppair, &rng ) )
   {
     fprintf( filewrite, "%4.2f-%4.2f\n", rng.ffrom, rng.fto );