1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 11:02:48 -05:00

Never pass a `char' to a ctype function. I had relied on gcc -Wall

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.

[originally from svn r2927]
This commit is contained in:
Simon Tatham
2003-03-11 09:30:31 +00:00
parent 43fe7d3c87
commit 73203bce79
4 changed files with 7 additions and 7 deletions

View File

@ -80,7 +80,7 @@ void provide_xrm_string(char *string)
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);