aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib530.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-21 05:35:08 +0000
committerYang Tse <yangsita@gmail.com>2008-01-21 05:35:08 +0000
commit3caeb0a91fbf7dfbae5a42257f225f9a9304256c (patch)
tree7dca683340c93bd308c4d5eafa048613b3f53cb6 /tests/libtest/lib530.c
parenta4eddf0d0dfb556f26201cc264a080f38e868f09 (diff)
undo using internal *printf() clones for test #530
Diffstat (limited to 'tests/libtest/lib530.c')
-rw-r--r--tests/libtest/lib530.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/libtest/lib530.c b/tests/libtest/lib530.c
index cab4d8300..98eeb5273 100644
--- a/tests/libtest/lib530.c
+++ b/tests/libtest/lib530.c
@@ -10,11 +10,15 @@
#include "test.h"
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
-
-#define ENABLE_CURLX_PRINTF
-#include "curlx.h"
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
#include "testutil.h"
@@ -35,7 +39,7 @@ int test(char *URL)
struct timeval mp_start;
char ml_timedout = FALSE;
char mp_timedout = FALSE;
- char target_url[80];
+ char target_url[256];
if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
fprintf(stderr, "curl_global_init() failed\n");
@@ -62,7 +66,7 @@ int test(char *URL)
curl_global_cleanup();
return TEST_ERR_MAJOR_BAD + i;
}
- snprintf(target_url, sizeof(target_url), "%s%04i", URL, i + 1);
+ sprintf(target_url, "%s%04i", URL, i + 1);
target_url[sizeof(target_url) - 1] = '\0';
curl_easy_setopt(curl[i], CURLOPT_URL, target_url);