summaryrefslogtreecommitdiff
path: root/ham/dpbox/patches/patch-au
blob: ec31a17607c8e3013f8cfa175b434bf6a7355def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-au,v 1.1 2006/04/21 02:07:54 wulf Exp $

--- crawler.c.orig	2006-04-14 12:03:52.000000000 +0930
+++ crawler.c	2006-04-14 12:08:40.000000000 +0930
@@ -191,7 +191,7 @@
 		return (*wlen > 0);
 	} else {
 		n = p;
-		while ((c = *n++) && isdigit(c));
+		while ((c = *n++) && isdigit((u_char) c));
 		if (!c) {
 			strcpy(--outw, p);
 			*wlen = (--n - *inw) - 1;
@@ -219,7 +219,7 @@
 			continue;
 
 		wlen++;
-		c = tolower(c);
+		c = tolower((u_char) c);
 		
 		switch ((unsigned char)c) {
 
@@ -259,7 +259,7 @@
 		  	*outw++ = c;
 		  	ct++;
 		  	if (nonum == 0)
-		  		if (!isdigit(c))
+		  		if (!isdigit((u_char) c))
 		  			nonum = 1;
 		  	break;
 		}