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:
parent
deadab0900
commit
7e715c5aaf
2
misc.c
2
misc.c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user