From 8f50a404f9752acb7262b1854e1e29fcca0fb3fb Mon Sep 17 00:00:00 2001 From: Brad Hards <bradh@frogmouth.net> Date: Fri, 17 Dec 2010 00:06:03 +0100 Subject: [PATCH] chkspeed: bad strtol() call for -M option Bug: http://curl.haxx.se/mail/lib-2010-12/0192.html --- docs/examples/chkspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/chkspeed.c b/docs/examples/chkspeed.c index 00db5bf1d4..4305bde8df 100644 --- a/docs/examples/chkspeed.c +++ b/docs/examples/chkspeed.c @@ -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; -- GitLab