commit d45a402420ff067428422e33efeedf341026c382
parent eec7ef1b877c3d08954d47a410b79d922c39d27b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 18 Feb 2014 18:38:58 +0000
test_get_sendfile.c - remove DIR_SEPARATOR_STR (W32 works fine with forwardslashes)
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
@@ -458,13 +458,13 @@ main (int argc, char *const *argv)
FILE *f;
if ( (NULL == (tmp = getenv ("TMPDIR"))) &&
- (NULL == (tmp = getenv ("TMP"))) )
+ (NULL == (tmp = getenv ("TMP"))) &&
+ (NULL == (tmp = getenv ("TEMP"))) )
tmp = "/tmp";
sourcefile = malloc (strlen (tmp) + 32);
sprintf (sourcefile,
- "%s%s%s",
+ "%s/%s",
tmp,
- DIR_SEPARATOR_STR,
"test-mhd-sendfile");
f = fopen (sourcefile, "w");
if (NULL == f)