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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
$NetBSD: patch-at,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- box_sub.c.orig 2006-04-14 11:50:30.000000000 +0930
+++ box_sub.c 2006-04-14 11:52:09.000000000 +0930
@@ -2693,9 +2693,9 @@
notnum = false;
for (x = 0; x < l; x++) {
- if (!(rubrik[x] == '_' || rubrik[x] == '-' || isupper(rubrik[x]) || isdigit(rubrik[x])))
+ if (!(rubrik[x] == '_' || rubrik[x] == '-' || isupper((u_char) rubrik[x]) || isdigit((u_char) rubrik[x])))
return false;
- else if (isupper(rubrik[x]))
+ else if (isupper((u_char) rubrik[x]))
notnum = true;
}
return notnum;
@@ -2781,7 +2781,7 @@
p = rubrik;
p2 = rubrik;
while ((c = upcase_(*p++))) {
- if (c == '_' || c == '-' || isupper(c) || isdigit(c))
+ if (c == '_' || c == '-' || isupper((u_char) c) || isdigit((u_char) c))
*p2++ = c;
}
*p2 = '\0';
@@ -3347,7 +3347,7 @@
case '#':
if ((unsigned long)strlen(inp) < 32 && /* !!!CHECK */
- ((1L << strlen(inp)) & 0x1c) != 0 && isdigit(inp[1])) {
+ ((1L << strlen(inp)) & 0x1c) != 0 && isdigit((u_char) inp[1])) {
strdelete(inp, 1, 1);
strcpy(lt, inp);
return true;
@@ -3692,7 +3692,7 @@
*hs = '\0';
y = x;
y++;
- while (y <= t && eingabe[y - 1] != ' ' && isdigit(eingabe[y - 1])) {
+ while (y <= t && eingabe[y - 1] != ' ' && isdigit((u_char) eingabe[y - 1])) {
sprintf(hs + strlen(hs), "%c", eingabe[y - 1]);
y++;
}
@@ -3746,10 +3746,10 @@
FORLIM = strlen(ein);
for (x = 0; x < FORLIM; x++) {
- if (isdigit(ein[x]))
+ if (isdigit((u_char) ein[x]))
numbers = true;
if (ein[x] == '_' || (ein[x] & 255) == 158 || (ein[x] & 255) == 154 ||
- (ein[x] & 255) == 153 || (ein[x] & 255) == 142 || isupper(ein[x]))
+ (ein[x] & 255) == 153 || (ein[x] & 255) == 142 || isupper((u_char) ein[x]))
alphab = true;
if (ein[x] == '-')
slashct++;
|