Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > 2588775becf6787307d67c777367d312 > files > 2

smartmontools-5.38-4mdv2009.1.src.rpm

diff -Naur --exclude '*~' smartmontools-5.38/os_linux.cpp smartmontools-5.38-fix-format-errors/os_linux.cpp
--- smartmontools-5.38/os_linux.cpp	2008-03-04 23:09:47.000000000 +0100
+++ smartmontools-5.38-fix-format-errors/os_linux.cpp	2009-02-04 21:17:49.000000000 +0100
@@ -715,7 +715,7 @@
         }
         else
             j += snprintf(&buff[j], (sz > j ? (sz - j) : 0), "]\n");
-        pout(buff);
+        pout("%s", buff);
     }
     memset(&io_hdr, 0, sizeof(struct sg_io_hdr));
     io_hdr.interface_id = 'S';
@@ -864,7 +864,7 @@
         }
         else
             j += snprintf(&buff[j], (sz > j ? (sz - j) : 0), "]\n");
-        pout(buff);
+        pout("%s", buff);
     }
     switch (iop->dxfer_dir) {
         case DXFER_NONE:
diff -Naur --exclude '*~' smartmontools-5.38/smartd.cpp smartmontools-5.38-fix-format-errors/smartd.cpp
--- smartmontools-5.38/smartd.cpp	2008-03-04 23:09:47.000000000 +0100
+++ smartmontools-5.38-fix-format-errors/smartd.cpp	2009-02-04 21:16:52.000000000 +0100
@@ -312,7 +312,7 @@
 void PrintCVS(void){
   const char *configargs=strlen(SMARTMONTOOLS_CONFIGURE_ARGS)?SMARTMONTOOLS_CONFIGURE_ARGS:"[no arguments given]";
 
-  PrintOut(LOG_INFO,(char *)copyleftstring);
+  PrintOut(LOG_INFO, "%s", (char *)copyleftstring);
   PrintOut(LOG_INFO,"CVS version IDs of files used to build this code are:\n");
   PrintOneCVS(atacmdnames_c_cvsid);
   PrintOneCVS(atacmds_c_cvsid);
@@ -3831,7 +3831,7 @@
   if (!(s = GetValidArgList(opt)))
     PrintOut(LOG_CRIT, "Error constructing argument list for option %c", opt);
   else
-    PrintOut(LOG_CRIT, (char *)s);
+    PrintOut(LOG_CRIT, "%s", (char *)s);
   PrintOut(LOG_CRIT, " <=======\n");
 }