aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/perf_get_concurrent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/perf_get_concurrent.c')
-rw-r--r--src/testcurl/perf_get_concurrent.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcurl/perf_get_concurrent.c b/src/testcurl/perf_get_concurrent.c
index 49ed1ba4..e1c2e997 100644
--- a/src/testcurl/perf_get_concurrent.c
+++ b/src/testcurl/perf_get_concurrent.c
@@ -218,8 +218,10 @@ do_gets (void * param)
218 int port = (int)(intptr_t)param; 218 int port = (int)(intptr_t)param;
219 char *err = NULL; 219 char *err = NULL;
220 220
221 sprintf(url, "http://127.0.0.1:%d/hello_world", port); 221 snprintf (url,
222 222 sizeof (url),
223 "http://127.0.0.1:%d/hello_world",
224 port);
223 for (j=0;j<PAR;j++) 225 for (j=0;j<PAR;j++)
224 { 226 {
225 if (0 != pthread_create(&par[j], NULL, &thread_gets, (void*)url)) 227 if (0 != pthread_create(&par[j], NULL, &thread_gets, (void*)url))