aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib562.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib562.c')
-rw-r--r--tests/libtest/lib562.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib562.c b/tests/libtest/lib562.c
index d78ecce25..acdd79aab 100644
--- a/tests/libtest/lib562.c
+++ b/tests/libtest/lib562.c
@@ -57,7 +57,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_VERBOSE, 1L);
/* set port number */
- test_setopt(curl, CURLOPT_PORT, atoi(libtest_arg2) );
+ test_setopt(curl, CURLOPT_PORT, strtol(libtest_arg2, NULL, 10));
/* specify target */
test_setopt(curl,CURLOPT_URL, URL);