aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_large_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_large_put.c')
-rw-r--r--src/testcurl/test_large_put.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index 2875939a..ec0022ee 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -19,7 +19,7 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file daemontest_large_put.c 22 * @file test_large_put.c
23 * @brief Testcase for libmicrohttpd PUT operations 23 * @brief Testcase for libmicrohttpd PUT operations
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 */ 25 */
@@ -460,7 +460,8 @@ main (int argc, char *const *argv)
460{ 460{
461 unsigned int errorCount = 0; 461 unsigned int errorCount = 0;
462 462
463 oneone = NULL != strstr (argv[0], "11"); 463 oneone = (NULL != strrchr (argv[0], (int) '/')) ?
464 (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
464 if (0 != curl_global_init (CURL_GLOBAL_WIN32)) 465 if (0 != curl_global_init (CURL_GLOBAL_WIN32))
465 return 2; 466 return 2;
466 put_buffer = malloc (PUT_SIZE); 467 put_buffer = malloc (PUT_SIZE);