Gentoo Archives: gentoo-commits

From: "Bernard Cafarelli (voyageur)" <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/wmswallow/files: wmswallow-0.6.1-format-security.patch
Date: Wed, 01 Apr 2015 15:22:15
Message-Id: 20150401152207.4140114FF2@oystercatcher.gentoo.org
1 voyageur 15/04/01 15:22:06
2
3 Added: wmswallow-0.6.1-format-security.patch
4 Log:
5 Fix compilation with format-security, bug #544644
6
7 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 00F7AB331B0F097F)
8
9 Revision Changes Path
10 1.1 x11-plugins/wmswallow/files/wmswallow-0.6.1-format-security.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmswallow/files/wmswallow-0.6.1-format-security.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/wmswallow/files/wmswallow-0.6.1-format-security.patch?rev=1.1&content-type=text/plain
14
15 Index: wmswallow-0.6.1-format-security.patch
16 ===================================================================
17 --- wmswallow.c.orig 2015-04-01 17:12:29.420177608 +0200
18 +++ wmswallow.c 2015-04-01 17:13:14.947182921 +0200
19 @@ -445,11 +445,11 @@
20 int printlist(FILE * stream, char * string, char **stringlist) {
21 int i=0;
22
23 - fprintf(stream, string);
24 + fprintf(stream, "%s", string);
25 if (stringlist!=NULL) {
26 while (stringlist[i]!=NULL) {
27 fprintf(stream, " §");
28 - fprintf(stream, stringlist[i]);
29 + fprintf(stream, "%s", stringlist[i]);
30 fprintf(stream, "§ ");
31 ++i;
32 }