Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/nsat/files: nsat-1.5-va_list.patch
Date: Sun, 06 Jul 2014 02:07:02
Message-Id: 20140706020656.D2BBB2004F@flycatcher.gentoo.org
1 jer 14/07/06 02:06:56
2
3 Added: nsat-1.5-va_list.patch
4 Log:
5 Fix a segmentation fault with the -n option.
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
8
9 Revision Changes Path
10 1.1 net-analyzer/nsat/files/nsat-1.5-va_list.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-va_list.patch?rev=1.1&view=markup
13 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
14
15 Index: nsat-1.5-va_list.patch
16 ===================================================================
17 --- a/src/Logging.cpp
18 +++ b/src/Logging.cpp
19 @@ -94,6 +94,9 @@
20 if(fp!=NULL)
21 vfprintf(fp, fmt, va);
22
23 + va_end(va);
24 + va_start(va, fmt);
25 +
26 if((pi.Foreground) && (out!=NULL))
27 vfprintf(stdout, fmt, va);