aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib521.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-11-28 23:11:14 +0100
committerYang Tse <yangsita@gmail.com>2010-11-28 23:11:14 +0100
commit5db0a412ff6972e51ccddaf1e8d6a27c8de4990f (patch)
tree8c8cfa609c25c68929554ac1e24eaa4084683152 /tests/libtest/lib521.c
parentcbe67a1b71f7098779b8c0cecccb60382cec2d20 (diff)
atoi: remove atoi usage
Diffstat (limited to 'tests/libtest/lib521.c')
-rw-r--r--tests/libtest/lib521.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib521.c b/tests/libtest/lib521.c
index a4ae5558a..9e79cb41e 100644
--- a/tests/libtest/lib521.c
+++ b/tests/libtest/lib521.c
@@ -28,7 +28,7 @@ int test(char *URL)
}
test_setopt(curl, CURLOPT_URL, URL);
- test_setopt(curl, CURLOPT_PORT, atoi(libtest_arg2));
+ test_setopt(curl, CURLOPT_PORT, strtol(libtest_arg2, NULL, 10));
test_setopt(curl, CURLOPT_USERPWD, "xxx:yyy");
test_setopt(curl, CURLOPT_VERBOSE, 1L);