diff options
Diffstat (limited to 'url.c')
-rw-r--r-- | url.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |