mta_sendmail: isspace cannot take a char argument
diff --git a/agent/mibgroup/mibII/mta_sendmail.c b/agent/mibgroup/mibII/mta_sendmail.c
index ad64f36..5921d68 100644
--- a/agent/mibgroup/mibII/mta_sendmail.c
+++ b/agent/mibgroup/mibII/mta_sendmail.c
@@ -775,7 +775,7 @@
if (mailers < MAXMAILERS) {
for (i = 1;
- line[i] != ',' && !isspace(line[i]) && line[i] != '\0'
+ line[i] != ',' && !isspace(line[i] & 0xFF) && line[i] != '\0'
&& i <= MNAMELEN; i++) {
mailernames[mailers][i - 1] = line[i];
}
@@ -1046,7 +1046,7 @@
}
if (strcasecmp(token, "sendmail_stats") == 0) {
- while (isspace(*line)) {
+ while (isspace(*line & 0xFF)) {
line++;
}
copy_nword(line, sendmailst_fn, sizeof(sendmailst_fn));
@@ -1064,7 +1064,7 @@
"opened statistics file \"%s\"\n", sendmailst_fn));
return;
} else if (strcasecmp(token, "sendmail_config") == 0) {
- while (isspace(*line)) {
+ while (isspace(*line & 0xFF)) {
line++;
}
copy_nword(line, sendmailcf_fn, sizeof(sendmailcf_fn));
@@ -1075,14 +1075,14 @@
"read config file \"%s\"\n", sendmailcf_fn));
return;
} else if (strcasecmp(token, "sendmail_queue") == 0) {
- while (isspace(*line)) {
+ while (isspace(*line & 0xFF)) {
line++;
}
add_queuegroup("mqueue", line);
return;
} else if (strcasecmp(token, "sendmail_index") == 0) {
- while (isspace(*line)) {
+ while (isspace(*line & 0xFF)) {
line++;
}
applindex = atol(line);
@@ -1091,7 +1091,7 @@
applindex = 1;
}
} else if (strcasecmp(token, "sendmail_stats_t") == 0) {
- while (isspace(*line)) {
+ while (isspace(*line & 0xFF)) {
line++;
}
stat_cache_time = atol(line);
@@ -1100,7 +1100,7 @@
applindex = 5;
}
} else if (strcasecmp(token, "sendmail_queue_t") == 0) {
- while (isspace(*line)) {
+ while (isspace(*line & 0xFF)) {
line++;
}
dir_cache_time = atol(line);