Skip to content
Snippets Groups Projects
Commit 8f50a404 authored by Brad Hards's avatar Brad Hards Committed by Daniel Stenberg
Browse files

chkspeed: bad strtol() call for -M option

parent f6ebae65
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment