blob: 278ebe67fd58f7e32087cba58f05926fda11d81b (
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
|
$NetBSD: patch-aa,v 1.4 2006/06/26 11:20:47 rillig Exp $
Fixed gcc warning: subscript has type `char'.
--- totd.c.orig 2005-02-02 12:10:31.000000000 +0100
+++ totd.c 2006-06-26 13:18:42.000000000 +0200
@@ -167,7 +167,7 @@ int main (int argc, char **argv) {
}
if (T.user) {
- if (isdigit(T.user[0])) {
+ if (isdigit((unsigned char)(T.user[0]))) {
T.uid = atoi(T.user);
pwd_p = NULL;
} else {
@@ -191,7 +191,7 @@ to: %s", T.user);
}
if (T.group) {
- if (isdigit(T.group[0])) {
+ if (isdigit((unsigned char)(T.group[0]))) {
T.gid = atoi(T.group);
} else {
struct group *grp_p;
|