pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/gnome2-games Added a patch that makes the declar...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e8d5470f2ca2
branches: trunk
changeset: 495568:e8d5470f2ca2
user: rillig <rillig%pkgsrc.org@localhost>
date: Tue Jun 14 07:41:35 2005 +0000
description:
Added a patch that makes the declaration of toupper() visible and fixes an
out-of-bounds error.
diffstat:
games/gnome2-games/distinfo | 3 ++-
games/gnome2-games/patches/patch-ae | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 95b8fe0cde20 -r e8d5470f2ca2 games/gnome2-games/distinfo
--- a/games/gnome2-games/distinfo Tue Jun 14 07:25:24 2005 +0000
+++ b/games/gnome2-games/distinfo Tue Jun 14 07:41:35 2005 +0000
@@ -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 @@
SHA1 (patch-aa) = e74547a19267b1a39528d9556d115fff4f7cd21d
SHA1 (patch-ac) = e54f3fecee226f78edf17dc686c6bde2a25e36fd
SHA1 (patch-ad) = fe37a9355b68f4dbd89590a6c1baab56c480840c
+SHA1 (patch-ae) = bb5870303333f7f331555eaf09811db9c313cddb
diff -r 95b8fe0cde20 -r e8d5470f2ca2 games/gnome2-games/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/gnome2-games/patches/patch-ae Tue Jun 14 07:41:35 2005 +0000
@@ -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 <cctype>
+ #include <iostream>
+ 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);
Home |
Main Index |
Thread Index |
Old Index