pkgsrc/games/xmahjongg/patches/patch-ab
tonio 338c1f3d3e Update games/xmahjongg to version 3.7
Changelog:
Version 3.7   8.Mar.2005
* Man page bug fixes from Debian via Dave Swegen.
* Source code reorganization.
2008-07-22 21:25:00 +00:00

16 lines
582 B
Text

$NetBSD: patch-ab,v 1.5 2008/07/22 21:25:00 tonio Exp $
--- liblcdf/giftoc.c.orig 2003-08-29 05:58:00.000000000 +0200
+++ liblcdf/giftoc.c
@@ -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 = '_';