chkspeed: bad strtol() call for -M option

Bug: http://curl.haxx.se/mail/lib-2010-12/0192.html
This commit is contained in:
Brad Hards 2010-12-17 00:06:03 +01:00 committed by Daniel Stenberg
parent f6ebae65d6
commit 8f50a404f9

View File

@ -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;