summaryrefslogtreecommitdiff
path: root/url.c
diff options
context:
space:
mode:
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)