1 |
jlec 15/07/03 07:46:32 |
2 |
|
3 |
Added: talkfilters-2.3.8-format-security.patch |
4 |
Log: |
5 |
fix problems with format-security, bug #521258 |
6 |
|
7 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key E9402A79B03529A2!) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-text/talkfilters/files/talkfilters-2.3.8-format-security.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/talkfilters/files/talkfilters-2.3.8-format-security.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/talkfilters/files/talkfilters-2.3.8-format-security.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: talkfilters-2.3.8-format-security.patch |
16 |
=================================================================== |
17 |
wrap.c | 8 ++++---- |
18 |
1 file changed, 4 insertions(+), 4 deletions(-) |
19 |
|
20 |
diff --git a/wrap.c b/wrap.c |
21 |
index 7c89dc8..745d1ec 100644 |
22 |
--- a/wrap.c |
23 |
+++ b/wrap.c |
24 |
@@ -105,7 +105,7 @@ int main(int argc, char **argv) |
25 |
{ |
26 |
*wp = 0; |
27 |
putchar('\n'); |
28 |
- printf(wbuf); |
29 |
+ printf("%s", wbuf); |
30 |
putchar(c); |
31 |
putchar('\n'); |
32 |
wp = wbuf, ll = wl = 0; |
33 |
@@ -123,7 +123,7 @@ int main(int argc, char **argv) |
34 |
{ |
35 |
*wp = 0; |
36 |
if(ll) putchar(' '), ll++; |
37 |
- printf(wbuf); |
38 |
+ printf("%s", wbuf); |
39 |
ll += wl; |
40 |
wl = 0, wp = wbuf; |
41 |
} |
42 |
@@ -131,7 +131,7 @@ int main(int argc, char **argv) |
43 |
{ |
44 |
*wp = 0; |
45 |
putchar('\n'); |
46 |
- printf(wbuf); |
47 |
+ printf("%s", wbuf); |
48 |
ll = wl; |
49 |
wl = 0, wp = wbuf; |
50 |
} |
51 |
@@ -148,7 +148,7 @@ int main(int argc, char **argv) |
52 |
if(ll) putchar(' '); |
53 |
} |
54 |
else putchar('\n'); |
55 |
- printf(wbuf); |
56 |
+ printf("%s", wbuf); |
57 |
} |
58 |
putchar('\n'); |
59 |
free(wbuf); |