diff options
Diffstat (limited to 'src/testcurl/test_get_sendfile.c')
-rw-r--r-- | src/testcurl/test_get_sendfile.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c index a312c205..c7e94945 100644 --- a/src/testcurl/test_get_sendfile.c +++ b/src/testcurl/test_get_sendfile.c | |||
@@ -584,11 +584,12 @@ main (int argc, char *const *argv) | |||
584 | (NULL == (tmp = getenv ("TEMP"))) ) | 584 | (NULL == (tmp = getenv ("TEMP"))) ) |
585 | tmp = "/tmp"; | 585 | tmp = "/tmp"; |
586 | sourcefile = malloc (strlen (tmp) + 32); | 586 | sourcefile = malloc (strlen (tmp) + 32); |
587 | sprintf (sourcefile, | 587 | snprintf (sourcefile, |
588 | "%s/%s%s", | 588 | strlen (tmp) + 32, |
589 | tmp, | 589 | "%s/%s%s", |
590 | "test-mhd-sendfile", | 590 | tmp, |
591 | oneone ? "11" : ""); | 591 | "test-mhd-sendfile", |
592 | oneone ? "11" : ""); | ||
592 | f = fopen (sourcefile, "w"); | 593 | f = fopen (sourcefile, "w"); |
593 | if (NULL == f) | 594 | if (NULL == f) |
594 | { | 595 | { |