32 lines
672 B
Plaintext
32 lines
672 B
Plaintext
$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;
|
|
}
|