From 81f4132aba005b1d02ee1a5fce4b5b625166cfa7 Mon Sep 17 00:00:00 2001 From: rillig Date: Tue, 14 Jun 2005 07:41:35 +0000 Subject: Added a patch that makes the declaration of toupper() visible and fixes an out-of-bounds error. --- games/gnome2-games/distinfo | 3 ++- games/gnome2-games/patches/patch-ae | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 games/gnome2-games/patches/patch-ae (limited to 'games') diff --git a/games/gnome2-games/distinfo b/games/gnome2-games/distinfo index a5bd3d5dad5..45cb7f82da2 100644 --- a/games/gnome2-games/distinfo +++ b/games/gnome2-games/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.18 2005/05/19 21:11:42 jmmv Exp $ +$NetBSD: distinfo,v 1.19 2005/06/14 07:41:35 rillig Exp $ SHA1 (gnome-games-2.10.1.tar.bz2) = 21a2c25b892edfb01a87659d4a270ebd1fecca59 RMD160 (gnome-games-2.10.1.tar.bz2) = 84695768d6fb2de236aa978b74a6e7d324417a75 @@ -6,3 +6,4 @@ Size (gnome-games-2.10.1.tar.bz2) = 5372474 bytes SHA1 (patch-aa) = e74547a19267b1a39528d9556d115fff4f7cd21d SHA1 (patch-ac) = e54f3fecee226f78edf17dc686c6bde2a25e36fd SHA1 (patch-ad) = fe37a9355b68f4dbd89590a6c1baab56c480840c +SHA1 (patch-ae) = bb5870303333f7f331555eaf09811db9c313cddb diff --git a/games/gnome2-games/patches/patch-ae b/games/gnome2-games/patches/patch-ae new file mode 100644 index 00000000000..c15ecb2ae48 --- /dev/null +++ b/games/gnome2-games/patches/patch-ae @@ -0,0 +1,23 @@ +$NetBSD: patch-ae,v 1.3 2005/06/14 07:41:35 rillig Exp $ + +Yes, C++ needs prototypes. ;) + +--- blackjack/src/game.cpp.orig Tue Apr 12 11:50:34 2005 ++++ blackjack/src/game.cpp Tue Jun 14 09:20:10 2005 +@@ -39,6 +39,7 @@ + #include "hand.h" + #include "game.h" + ++#include + #include + using namespace std; + +@@ -117,7 +118,7 @@ bj_game_file_to_name (const gchar* file) + *p = ' '; + for (p = buf; p = strchr (p, '-'), p && *p;) + *p = ' '; +- buf[0] = toupper (buf[0]); ++ buf[0] = toupper ((unsigned char) buf[0]); + p = g_strdup (_(buf)); + + g_free (buf); -- cgit v1.2.3