aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/chkspeed.c
diff options
context:
space:
mode:
authorBrad Hards <bradh@frogmouth.net>2010-12-17 00:06:03 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-12-17 00:09:48 +0100
commit8f50a404f9752acb7262b1854e1e29fcca0fb3fb (patch)
treeb7cf1172f49377aa713a61bbcd629c0e49058c4a /docs/examples/chkspeed.c
parentf6ebae65d6c4b6bbea2f93ef6cba5fe62f2cad43 (diff)
downloadgnurl-8f50a404f9752acb7262b1854e1e29fcca0fb3fb.tar.gz
gnurl-8f50a404f9752acb7262b1854e1e29fcca0fb3fb.tar.bz2
gnurl-8f50a404f9752acb7262b1854e1e29fcca0fb3fb.zip
chkspeed: bad strtol() call for -M option
Bug: http://curl.haxx.se/mail/lib-2010-12/0192.html
Diffstat (limited to 'docs/examples/chkspeed.c')
-rw-r--r--docs/examples/chkspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/chkspeed.c b/docs/examples/chkspeed.c
index 00db5bf1d..4305bde8d 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;