1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-16 03:53:01 -05:00

Martin Trautmann spotted a bare char being passed to isspace.

[originally from svn r5536]
This commit is contained in:
Simon Tatham 2005-03-21 13:46:16 +00:00
parent deadab0900
commit 7e715c5aaf

2
misc.c
View File

@ -24,7 +24,7 @@ unsigned long parse_blocksize(const char *bs)
char *suf; char *suf;
unsigned long r = strtoul(bs, &suf, 10); unsigned long r = strtoul(bs, &suf, 10);
if (*suf != '\0') { if (*suf != '\0') {
while (isspace(*suf)) suf++; while (*suf && isspace((unsigned char)*suf)) suf++;
switch (*suf) { switch (*suf) {
case 'k': case 'K': case 'k': case 'K':
r *= 1024ul; r *= 1024ul;