pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/frozen-bubble Fix ctype use.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6072ee0c048
branches:  trunk
changeset: 406352:c6072ee0c048
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Dec 19 22:14:46 2019 +0000

description:
Fix ctype use.

diffstat:

 games/frozen-bubble/Makefile                        |   4 +-
 games/frozen-bubble/distinfo                        |   4 ++-
 games/frozen-bubble/patches/patch-server_net.c__tmp |  22 +++++++++++++++++++++
 games/frozen-bubble/patches/patch-server_tools.c    |  13 ++++++++++++
 4 files changed, 40 insertions(+), 3 deletions(-)

diffs (70 lines):

diff -r e31d0274e413 -r c6072ee0c048 games/frozen-bubble/Makefile
--- a/games/frozen-bubble/Makefile      Thu Dec 19 22:14:07 2019 +0000
+++ b/games/frozen-bubble/Makefile      Thu Dec 19 22:14:46 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.65 2019/11/03 19:28:47 rillig Exp $
+# $NetBSD: Makefile,v 1.66 2019/12/19 22:14:46 joerg Exp $
 
 DISTNAME=      frozen-bubble-2.2.1-beta1
 PKGNAME=       ${DISTNAME:S/-beta/beta/}
-PKGREVISION=   6
+PKGREVISION=   7
 CATEGORIES=    games
 MASTER_SITES=  http://www.frozen-bubble.org/data/
 EXTRACT_SUFX=  .tar.bz2
diff -r e31d0274e413 -r c6072ee0c048 games/frozen-bubble/distinfo
--- a/games/frozen-bubble/distinfo      Thu Dec 19 22:14:07 2019 +0000
+++ b/games/frozen-bubble/distinfo      Thu Dec 19 22:14:46 2019 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.9 2017/09/26 11:17:37 wiz Exp $
+$NetBSD: distinfo,v 1.10 2019/12/19 22:14:46 joerg Exp $
 
 SHA1 (frozen-bubble-2.2.1-beta1.tar.bz2) = f3d320e701afbab36c48524fe00d331aaab0257f
 RMD160 (frozen-bubble-2.2.1-beta1.tar.bz2) = 1b7f6204c302a1f1b98ce19bb1ffaf309d8e0837
 SHA512 (frozen-bubble-2.2.1-beta1.tar.bz2) = a5d1432195bc41b2823678986fe71223acf5c740636a871758e6337072c74a84bca7aa7088af7b299586e4e261521ae0b3341805692ab684d93e85f52174b1ac
 Size (frozen-bubble-2.2.1-beta1.tar.bz2) = 22424798 bytes
+SHA1 (patch-server_net.c__tmp) = 284fcdb30cab4d6c48d3dd7254a96d0a37210d6a
+SHA1 (patch-server_tools.c) = 18199e083dc0a8743505241c80c53a33883a6fe4
diff -r e31d0274e413 -r c6072ee0c048 games/frozen-bubble/patches/patch-server_net.c__tmp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/frozen-bubble/patches/patch-server_net.c__tmp       Thu Dec 19 22:14:46 2019 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-server_net.c__tmp,v 1.1 2019/12/19 22:14:46 joerg Exp $
+
+--- server/net.c_tmp.orig      2019-12-19 20:56:09.046271448 +0000
++++ server/net.c_tmp
+@@ -1041,7 +1041,7 @@ static char * http_get(char * host, int 
+ 
+                         checkedCode = 1;
+                         start = headers;
+-                        while (!isspace(*start) && *start)
++                        while (!isspace((unsigned char)*start) && *start)
+                                 start++;
+                         if (!*start) {
+                                 close(sock);
+@@ -1051,7 +1051,7 @@ static char * http_get(char * host, int 
+                         start++;
+ 
+                         end = start;
+-                        while (!isspace(*end) && *end)
++                        while (!isspace((unsigned char)*end) && *end)
+                                 end++;
+                         if (!*end) {
+                                 close(sock);
diff -r e31d0274e413 -r c6072ee0c048 games/frozen-bubble/patches/patch-server_tools.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/frozen-bubble/patches/patch-server_tools.c  Thu Dec 19 22:14:46 2019 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-server_tools.c,v 1.1 2019/12/19 22:14:46 joerg Exp $
+
+--- server/tools.c.orig        2019-12-19 20:55:27.470742715 +0000
++++ server/tools.c
+@@ -41,7 +41,7 @@
+ int charstar_to_int(const char * s)
+ {
+         int number = 0;
+-        while (*s && isdigit(*s)) {
++        while (*s && isdigit((unsigned char)*s)) {
+                 number = (number * 10) + (*s - '0');
+                 s++;
+         }



Home | Main Index | Thread Index | Old Index