jer         14/07/06 02:06:56

  Added:                nsat-1.5-va_list.patch
  Log:
  Fix a segmentation fault with the -n option.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
A792A613)

Revision  Changes    Path
1.1                  net-analyzer/nsat/files/nsat-1.5-va_list.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-va_list.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-va_list.patch?rev=1.1&content-type=text/plain

Index: nsat-1.5-va_list.patch
===================================================================
--- a/src/Logging.cpp
+++ b/src/Logging.cpp
@@ -94,6 +94,9 @@
  if(fp!=NULL)
   vfprintf(fp, fmt, va);
 
+ va_end(va);
+ va_start(va, fmt);
+
  if((pi.Foreground) && (out!=NULL))
   vfprintf(stdout, fmt, va);
 




Reply via email to