Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 1d317725cd6a6094072ff9f09073d2eb > files > 2

netperf-2.4.5-1.mga1.src.rpm

--- netperf-2.4.5/src/nettest_bsd.c.fix	2009-06-04 02:31:15.000000000 +0200
+++ netperf-2.4.5/src/nettest_bsd.c	2009-07-12 11:17:02.000000000 +0200
@@ -1455,7 +1455,7 @@
   /* the headers. we know some of it here, but not all, so we will */
   /* only print the test title here and will print the results */
   /* titles after the test is finished */
-  fprintf(where,test_name);
+  fprintf(where,"%s",test_name);
   address_buf[0] = '\0';
   inet_ntop(source->ai_family,get_address_address(source),address_buf,sizeof(address_buf));
   fprintf(where,
@@ -3126,7 +3126,7 @@
     case 1:
     case 2:
       if (print_headers) {
-		fprintf(where,mss_title);
+		fprintf(where,"%s",mss_title);
       }
       fprintf(where,
 	      mss_fmt_0,		/* the format string */
--- netperf-2.4.5/src/nettest_unix.c.fix	2008-07-26 00:22:55.000000000 +0200
+++ netperf-2.4.5/src/nettest_unix.c	2009-07-12 11:24:36.000000000 +0200
@@ -1504,7 +1504,7 @@
     /* STREAM statistics, the alignments of the sends and receives */
     /* and all that sort of rot... */
     
-    fprintf(where,
+    fprintf(where, "%s",
 	    ksink_fmt);
   }
   /* The test is over. Kill the data socket */