summaryrefslogtreecommitdiff
path: root/games/xmahjongg/patches/patch-ab
blob: 5f04f62b909a94ed5cc96bf285deac143a611eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ab,v 1.4 2006/06/02 09:08:15 martin Exp $

--- giftoc.c.orig	1999-08-15 21:03:06.000000000 +0200
+++ giftoc.c	2006-06-02 11:02:19.000000000 +0200
@@ -192,9 +192,9 @@ or:    giftoc -makename [OPTIONS] FILE [
       sin = strrchr(file_name, PATHNAME_SEPARATOR) + 1;
       if (!sin) sin = file_name;
       sout = rec_name = (char *)fmalloc(strlen(sin) + 2);
-      if (isdigit(*sin)) *sout++ = 'N';
+      if (isdigit((unsigned char)*sin)) *sout++ = 'N';
       for (; *sin; sin++, sout++)
-	if (isalnum(*sin))
+	if (isalnum((unsigned char)*sin))
 	  *sout = *sin;
 	else
 	  *sout = '_';