projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4975259
)
Martin Trautmann spotted a bare char being passed to isspace.
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 21 Mar 2005 13:46:16 +0000
(13:46 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 21 Mar 2005 13:46:16 +0000
(13:46 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@5536
cda61777
-01e9-0310-a592-
d414129be87e
misc.c
patch
|
blob
|
blame
|
history
diff --git
a/misc.c
b/misc.c
index
fea96a9
..
17d8f39
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;