aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 23b052b50..5a22a25e1 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -309,8 +309,8 @@ static const unsigned int url_scanner_table[256] = {
IS_URLSAFE|IS_DOMAIN|IS_MAILSAFE
};
-#define is_lwsp(x) ((url_scanner_table[(guint)(x)] & IS_LWSP) != 0)
-#define is_mailsafe(x) ((url_scanner_table[(guint)(x)] & (IS_MAILSAFE)) != 0)
+#define is_lwsp(x) ((url_scanner_table[(guchar)(x)] & IS_LWSP) != 0)
+#define is_mailsafe(x) ((url_scanner_table[(guchar)(x)] & (IS_MAILSAFE)) != 0)
#define is_domain(x) ((url_scanner_table[(guchar)(x)] & IS_DOMAIN) != 0)
#define is_urlsafe(x) ((url_scanner_table[(guchar)(x)] & (IS_URLSAFE)) != 0)