aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_large_put.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-15 01:19:44 +0000
committerChristian Grothoff <christian@grothoff.org>2015-04-15 01:19:44 +0000
commit1a11c2c680e4cce9a63842db24d8e8b2194e7178 (patch)
treeca48dfa8b293c3cdcf266fd97fb97eec16d06d16 /src/testcurl/test_large_put.c
parent639bfd972debb7408386bc8977a88618178fb37c (diff)
downloadlibmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.tar.gz
libmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.zip
fix #3753
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);