letting me know about instances of this, but it turns out that my
ctype.h explicitly casts input values to `int' to evade the
`subscript has type char' warning, so it had been carefully not
letting me know! Found them all by compiling with a doctored
ctype.h, and hopefully fixed them all too.
git-svn-id: svn://svn.tartarus.org/sgt/putty@2927
cda61777-01e9-0310-a592-
d414129be87e
bsb(ldisc, plen(ldisc, ldisc->buf[ldisc->buflen - 1]));
ldisc->buflen--;
if (ldisc->buflen > 0 &&
bsb(ldisc, plen(ldisc, ldisc->buf[ldisc->buflen - 1]));
ldisc->buflen--;
if (ldisc->buflen > 0 &&
- isspace(ldisc->buf[ldisc->buflen - 1]) &&
- !isspace(ldisc->buf[ldisc->buflen]))
+ isspace((unsigned char)ldisc->buf[ldisc->buflen-1]) &&
+ !isspace((unsigned char)ldisc->buf[ldisc->buflen]))
while (exclude_list[s]) {
while (exclude_list[s] &&
while (exclude_list[s]) {
while (exclude_list[s] &&
- (isspace(exclude_list[s]) ||
+ (isspace((unsigned char)exclude_list[s]) ||
exclude_list[s] == ',')) s++;
if (!exclude_list[s]) break;
exclude_list[s] == ',')) s++;
if (!exclude_list[s]) break;
e = s;
while (exclude_list[e] &&
e = s;
while (exclude_list[e] &&
- (isalnum(exclude_list[e]) ||
+ (isalnum((unsigned char)exclude_list[e]) ||
exclude_list[e] == '-' ||
exclude_list[e] == '.' ||
exclude_list[e] == '*')) e++;
exclude_list[e] == '-' ||
exclude_list[e] == '.' ||
exclude_list[e] == '*')) e++;
/* Make sure we really have reached the next comma or end-of-string */
while (exclude_list[s] &&
/* Make sure we really have reached the next comma or end-of-string */
while (exclude_list[s] &&
- !isspace(exclude_list[s]) &&
+ !isspace((unsigned char)exclude_list[s]) &&
exclude_list[s] != ',') s++;
}
exclude_list[s] != ',') s++;
}
sk_write(rlogin->s, cfg->termtype,
strlen(cfg->termtype));
sk_write(rlogin->s, "/", 1);
sk_write(rlogin->s, cfg->termtype,
strlen(cfg->termtype));
sk_write(rlogin->s, "/", 1);
- for (p = cfg->termspeed; isdigit(*p); p++) continue;
+ for (p = cfg->termspeed; isdigit((unsigned char)*p); p++) continue;
sk_write(rlogin->s, cfg->termspeed, p - cfg->termspeed);
rlogin->bufsize = sk_write(rlogin->s, &z, 1);
}
sk_write(rlogin->s, cfg->termspeed, p - cfg->termspeed);
rlogin->bufsize = sk_write(rlogin->s, &z, 1);
}
memcpy(key, p, q-p);
key[q-p-1] = '\0';
xrms->key = key;
memcpy(key, p, q-p);
key[q-p-1] = '\0';
xrms->key = key;
- while (*q && isspace(*q))
+ while (*q && isspace((unsigned char)*q))
q++;
xrms->value = dupstr(q);
q++;
xrms->value = dupstr(q);