1 |
jer 15/02/08 07:52:52 |
2 |
|
3 |
Added: airtraf-1.1-fprintf-format.patch |
4 |
Log: |
5 |
Fix fprintf()s with missing format argument (bug #539228). |
6 |
|
7 |
(Portage version: 2.2.15/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key A792A613) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-wireless/airtraf/files/airtraf-1.1-fprintf-format.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/airtraf/files/airtraf-1.1-fprintf-format.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/airtraf/files/airtraf-1.1-fprintf-format.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: airtraf-1.1-fprintf-format.patch |
16 |
=================================================================== |
17 |
--- a/src/libcommon/logger.c |
18 |
+++ b/src/libcommon/logger.c |
19 |
@@ -92,9 +92,9 @@ |
20 |
|
21 |
switch (type) |
22 |
{ |
23 |
- case CONNECT_LOG: status = fprintf(connect_log, text); |
24 |
+ case CONNECT_LOG: status = fprintf(connect_log, "%s\n", text); |
25 |
break; |
26 |
- case ERROR_LOG: status = fprintf(error_log, text); |
27 |
+ case ERROR_LOG: status = fprintf(error_log, "%s\n", text); |
28 |
break; |
29 |
default: // do nothing? |
30 |
break; |