diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2023-08-19 18:15:55 +0200 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2023-08-19 18:16:38 +0200 |
commit | 26a77087027327d72d7229866a1ce12ad11a4d63 (patch) | |
tree | bfbf6b6704c8f853a1063b7ff3c7164d4b085ae1 /download.c | |
parent | 7caf4597bcfb64dac04b7190dab1022f1bc4e141 (diff) |
rework url_build function to end varargs with NULL
Diffstat (limited to 'download.c')
-rw-r--r-- | download.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |