]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Martin Trautmann spotted a bare char being passed to isspace.
authorSimon Tatham <anakin@pobox.com>
Mon, 21 Mar 2005 13:46:16 +0000 (13:46 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 21 Mar 2005 13:46:16 +0000 (13:46 +0000)
[originally from svn r5536]

misc.c

diff --git a/misc.c b/misc.c
index fea96a97a27637ce0f634d1e10b9e19cc774da22..17d8f39bc2ace8d84c9160a562413b87ff483d8c 100644 (file)
--- 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;