summaryrefslogtreecommitdiff
path: root/download.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2023-08-19 18:15:55 +0200
committerVincent Douillet <vincent@vdouillet.fr>2023-08-19 18:16:38 +0200
commit26a77087027327d72d7229866a1ce12ad11a4d63 (patch)
treebfbf6b6704c8f853a1063b7ff3c7164d4b085ae1 /download.c
parent7caf4597bcfb64dac04b7190dab1022f1bc4e141 (diff)
rework url_build function to end varargs with NULL
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)