diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-15 01:19:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-15 01:19:44 +0000 |
commit | 1a11c2c680e4cce9a63842db24d8e8b2194e7178 (patch) | |
tree | ca48dfa8b293c3cdcf266fd97fb97eec16d06d16 /src/testzzuf/test_long_header.c | |
parent | 639bfd972debb7408386bc8977a88618178fb37c (diff) | |
download | libmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.tar.gz libmicrohttpd-1a11c2c680e4cce9a63842db24d8e8b2194e7178.zip |
fix #3753
Diffstat (limited to 'src/testzzuf/test_long_header.c')
-rw-r--r-- | src/testzzuf/test_long_header.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testzzuf/test_long_header.c b/src/testzzuf/test_long_header.c index 94088d00..20041380 100644 --- a/src/testzzuf/test_long_header.c +++ b/src/testzzuf/test_long_header.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file daemontest_long_header.c | 22 | * @file test_long_header.c |
23 | * @brief Testcase for libmicrohttpd handling of very long headers | 23 | * @brief Testcase for libmicrohttpd handling of very long headers |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
@@ -215,12 +215,14 @@ testLongHeaderGet () | |||
215 | return 0; | 215 | return 0; |
216 | } | 216 | } |
217 | 217 | ||
218 | |||
218 | int | 219 | int |
219 | main (int argc, char *const *argv) | 220 | main (int argc, char *const *argv) |
220 | { | 221 | { |
221 | unsigned int errorCount = 0; | 222 | unsigned int errorCount = 0; |
222 | 223 | ||
223 | oneone = NULL != strstr (argv[0], "11"); | 224 | oneone = (NULL != strrchr (argv[0], (int) '/')) ? |
225 | (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0; | ||
224 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 226 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
225 | return 2; | 227 | return 2; |
226 | errorCount += testLongUrlGet (); | 228 | errorCount += testLongUrlGet (); |