diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-02-18 18:38:58 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-02-18 18:38:58 +0000 |
commit | d45a402420ff067428422e33efeedf341026c382 (patch) | |
tree | 558512e62049d089cea7acd818513e1477c026cd | |
parent | eec7ef1b877c3d08954d47a410b79d922c39d27b (diff) | |
download | libmicrohttpd-d45a402420ff067428422e33efeedf341026c382.tar.gz libmicrohttpd-d45a402420ff067428422e33efeedf341026c382.zip |
test_get_sendfile.c - remove DIR_SEPARATOR_STR (W32 works fine with forwardslashes)
-rw-r--r-- | src/testcurl/test_get_sendfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c index d073fee3..f78b6d4e 100644 --- a/src/testcurl/test_get_sendfile.c +++ b/src/testcurl/test_get_sendfile.c | |||
@@ -458,13 +458,13 @@ main (int argc, char *const *argv) | |||
458 | FILE *f; | 458 | FILE *f; |
459 | 459 | ||
460 | if ( (NULL == (tmp = getenv ("TMPDIR"))) && | 460 | if ( (NULL == (tmp = getenv ("TMPDIR"))) && |
461 | (NULL == (tmp = getenv ("TMP"))) ) | 461 | (NULL == (tmp = getenv ("TMP"))) && |
462 | (NULL == (tmp = getenv ("TEMP"))) ) | ||
462 | tmp = "/tmp"; | 463 | tmp = "/tmp"; |
463 | sourcefile = malloc (strlen (tmp) + 32); | 464 | sourcefile = malloc (strlen (tmp) + 32); |
464 | sprintf (sourcefile, | 465 | sprintf (sourcefile, |
465 | "%s%s%s", | 466 | "%s/%s", |
466 | tmp, | 467 | tmp, |
467 | DIR_SEPARATOR_STR, | ||
468 | "test-mhd-sendfile"); | 468 | "test-mhd-sendfile"); |
469 | f = fopen (sourcefile, "w"); | 469 | f = fopen (sourcefile, "w"); |
470 | if (NULL == f) | 470 | if (NULL == f) |