diff options
Diffstat (limited to 'url.c')
-rw-r--r-- | url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,6 +29,7 @@ */ #include <assert.h> +#include <limits.h> #include <stdarg.h> #include <string.h> @@ -39,7 +40,7 @@ check_request_path(char *path) { char *p_found; - if (strlen(path) >= URL_LENGTH_MAX) + if (strlen(path) >= PATH_MAX) return false; p_found = strstr(path, "/.."); @@ -55,7 +56,6 @@ url_build(char *dst, size_t dst_size,...) { va_list path_list; const char *path; - int path_index; size_t w_size; dst[0] = '\0'; |