jer         15/01/13 18:23:13

  Added:                ippl-1.4.14-format-warnings.patch
  Log:
  Fix some format warnings (bug #536116).
  
  (Portage version: 2.2.15/cvs/Linux x86_64, RepoMan options: --force, signed 
Manifest commit with key A792A613)

Revision  Changes    Path
1.1                  net-analyzer/ippl/files/ippl-1.4.14-format-warnings.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ippl/files/ippl-1.4.14-format-warnings.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ippl/files/ippl-1.4.14-format-warnings.patch?rev=1.1&content-type=text/plain

Index: ippl-1.4.14-format-warnings.patch
===================================================================
--- a/Source/log.c
+++ b/Source/log.c
@@ -147,7 +147,7 @@
   }
 
   if (repeats > 0) {
-    snprintf(date, 27, asctime(localtime(&last_repeat)));
+    snprintf(date, 27, "%s", asctime(localtime(&last_repeat)));
     snprintf(repeat_message, 40, "last message repeated %d time(s)\n", 
repeats);
     write(fd, date+4, strlen(date)-10);
     write(fd, " ", 1);
@@ -155,7 +155,7 @@
     repeats = 0;
   }
 
-  snprintf(date, 27, asctime(localtime(&current)));
+  snprintf(date, 27, "%s", asctime(localtime(&current)));
   write(fd, date+4, strlen(date)-10);
   write(fd, " ", 1);
   write(fd, entry, (strlen(entry) < 1023) ? strlen(entry) : 1023 );




Reply via email to