Skip to content

Commit

Permalink
games-board/sirius: Fix format-security. Bug #539102
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.26
  • Loading branch information
atupone committed Jan 14, 2016
1 parent 2bbf8c4 commit 4554d8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions games-board/sirius/files/sirius-0.8.0-format.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/sirius.c.old 2016-01-14 21:22:53.946900371 +0100
+++ src/sirius.c 2016-01-14 21:24:08.240507669 +0100
@@ -180,7 +180,7 @@

paus = 1;

- box = gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, message);
+ box = gtk_message_dialog_new (GTK_WINDOW (window), GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "%s", message);
gtk_dialog_run (GTK_DIALOG(box));
gtk_widget_destroy(box);

5 changes: 3 additions & 2 deletions games-board/sirius/sirius-0.8.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
inherit autotools games
inherit autotools eutils games

DESCRIPTION="A program for playing the game of othello/reversi"
HOMEPAGE="http://sirius.bitvis.nu/"
Expand All @@ -29,6 +29,7 @@ src_prepare() {
-e '/Categories/s/Application;//' \
sirius.desktop.in || die
mv configure.in configure.ac || die
epatch "${FILESDIR}"/${P}-format.patch
eautoreconf
}

Expand Down

0 comments on commit 4554d8a

Please sign in to comment.