X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/49752598648f75eb7c571e728f299c741040dbab..0d1193675cedd34690779da3e38b756c56832ae6:/misc.c?ds=sidebyside 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;