From 10bb08dd2d8484d0d1d2ae507b94aaa24f48b61b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Mar 2021 16:50:48 +0000 Subject: [Minor] Various fixes for display link detection --- src/libserver/http/http_router.c | 2 +- src/libserver/http/http_util.c | 2 +- src/libserver/http/http_util.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libserver/http') diff --git a/src/libserver/http/http_router.c b/src/libserver/http/http_router.c index a5b960e72..960df0ce3 100644 --- a/src/libserver/http/http_router.c +++ b/src/libserver/http/http_router.c @@ -291,7 +291,7 @@ rspamd_http_router_finish_handler (struct rspamd_http_connection *conn, http_parser_parse_url (msg->url->str, msg->url->len, TRUE, &u); if (u.field_set & (1 << UF_PATH)) { - guint unnorm_len; + gsize unnorm_len; pathbuf = g_malloc (u.field_data[UF_PATH].len); memcpy (pathbuf, msg->url->str + u.field_data[UF_PATH].off, diff --git a/src/libserver/http/http_util.c b/src/libserver/http/http_util.c index ec9d9fa58..fd5adb3c1 100644 --- a/src/libserver/http/http_util.c +++ b/src/libserver/http/http_util.c @@ -302,7 +302,7 @@ rspamd_http_date_format (gchar *buf, gsize len, time_t time) } void -rspamd_http_normalize_path_inplace (gchar *path, guint len, guint *nlen) +rspamd_http_normalize_path_inplace (gchar *path, guint len, gsize *nlen) { const gchar *p, *end, *slash = NULL, *dot = NULL; gchar *o; diff --git a/src/libserver/http/http_util.h b/src/libserver/http/http_util.h index 7a22ffb16..19b497f30 100644 --- a/src/libserver/http/http_util.h +++ b/src/libserver/http/http_util.h @@ -47,7 +47,7 @@ glong rspamd_http_date_format (gchar *buf, gsize len, time_t time); * @param len * @param nlen */ -void rspamd_http_normalize_path_inplace (gchar *path, guint len, guint *nlen); +void rspamd_http_normalize_path_inplace (gchar *path, guint len, gsize *nlen); #ifdef __cplusplus } -- cgit v1.2.3