summaryrefslogtreecommitdiff
path: root/url.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-09-05 12:58:22 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-09-06 12:22:20 +0200
commit35a145fd161fb4d4f19aa9820b50438695b94414 (patch)
tree00e9f341d5b7e0a6874efbe9fafc0500cf13cd2d /url.c
parent9b8d38ab209c6e7e747d6d420f1b105fe858c7eb (diff)
browse: add upload button
Diffstat (limited to 'url.c')
-rw-r--r--url.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/url.c b/url.c
index 3e82821..adcc95d 100644
--- a/url.c
+++ b/url.c
@@ -38,9 +38,9 @@
#include "url.h"
bool
-check_request_path(char *path, char *suffix)
+check_request_path(const char *path, const char *suffix)
{
- char p[PATH_MAX], resolved[PATH_MAX];
+ char p [PATH_MAX], resolved[PATH_MAX];
char *rp, *data_dir;
data_dir = config_data_dir();
@@ -61,7 +61,6 @@ check_request_path(char *path, char *suffix)
if (strlcat(p, suffix, sizeof(p)) >= sizeof(p))
return false;
}
-
/* canonicalize the path */
rp = realpath(p, resolved);
if (rp == NULL)