summaryrefslogtreecommitdiff
path: root/games/gnome-games/patches/patch-ae
blob: 2a115d1387f28f31db679d3f5abebba8bf2cafac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ae,v 1.5 2007/09/20 00:05:58 wiz 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);