summaryrefslogtreecommitdiff
path: root/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'download.c')
-rw-r--r--download.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/download.c b/download.c
index ba59b68..ce22ea7 100644
--- a/download.c
+++ b/download.c
@@ -54,8 +54,8 @@ download(struct kreq * r)
http_exit(r, KHTTP_400, "download: Invalid request path");
/* build requested file path */
- path_size = url_build(file_path, URL_LENGTH_MAX, 2, DATA_DIR,
- "File.txt");
+ path_size = url_build(file_path, URL_LENGTH_MAX, DATA_DIR, "File.txt",
+ NULL);
if (path_size == 0)
http_exit(r, KHTTP_404, "download: Unable to build file path");
if (path_size >= URL_LENGTH_MAX)