mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
chkspeed: bad strtol() call for -M option
Bug: http://curl.haxx.se/mail/lib-2010-12/0192.html
This commit is contained in:
parent
f6ebae65d6
commit
8f50a404f9
@ -71,7 +71,7 @@ int main(int argc, char *argv[])
|
||||
} else if (strncasecmp(*argv, "-T", 2) == 0) {
|
||||
prttime = 1;
|
||||
} else if (strncasecmp(*argv, "-M=", 3) == 0) {
|
||||
long m = strtol(argv+3, NULL, 10);
|
||||
long m = strtol((*argv)+3, NULL, 10);
|
||||
switch(m) {
|
||||
case 1: url = URL_1M;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user