diff options
Diffstat (limited to 'src/testcurl/test_digestauth_concurrent.c')
-rw-r--r-- | src/testcurl/test_digestauth_concurrent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcurl/test_digestauth_concurrent.c b/src/testcurl/test_digestauth_concurrent.c index 792d15de..e7789cbe 100644 --- a/src/testcurl/test_digestauth_concurrent.c +++ b/src/testcurl/test_digestauth_concurrent.c | |||
@@ -361,7 +361,8 @@ setupCURL (void *cbc, uint16_t port, char *errbuf) | |||
361 | /* A workaround for some old libcurl versions, which ignore the specified | 361 | /* A workaround for some old libcurl versions, which ignore the specified |
362 | * port by CURLOPT_PORT when digest authorisation is used. */ | 362 | * port by CURLOPT_PORT when digest authorisation is used. */ |
363 | res = snprintf (url, (sizeof(url) / sizeof(url[0])), | 363 | res = snprintf (url, (sizeof(url) / sizeof(url[0])), |
364 | "http://127.0.0.1:%d%s", (int) port, MHD_URI_BASE_PATH); | 364 | "http://127.0.0.1:%u%s", (unsigned int) port, |
365 | MHD_URI_BASE_PATH); | ||
365 | if ((0 >= res) || ((sizeof(url) / sizeof(url[0])) <= (size_t) res)) | 366 | if ((0 >= res) || ((sizeof(url) / sizeof(url[0])) <= (size_t) res)) |
366 | externalErrorExitDesc ("Cannot form request URL"); | 367 | externalErrorExitDesc ("Cannot form request URL"); |
367 | } | 368 | } |