From: Simon Tatham Date: Mon, 21 Mar 2005 13:46:16 +0000 (+0000) Subject: Martin Trautmann spotted a bare char being passed to isspace. X-Git-Tag: 0.58~28 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=7e715c5aafd5051a6b91b4a3cfe3c0b0575a89cb;p=PuTTY.git Martin Trautmann spotted a bare char being passed to isspace. [originally from svn r5536] --- diff --git a/misc.c b/misc.c index fea96a97..17d8f39b 100644 --- a/misc.c +++ b/misc.c @@ -24,7 +24,7 @@ unsigned long parse_blocksize(const char *bs) char *suf; unsigned long r = strtoul(bs, &suf, 10); if (*suf != '\0') { - while (isspace(*suf)) suf++; + while (*suf && isspace((unsigned char)*suf)) suf++; switch (*suf) { case 'k': case 'K': r *= 1024ul;