From d89d948c77f55ccfa56cbfe595e6474f070d0b2d Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 27 Feb 2019 19:19:35 +0100 Subject: util: parseuri: fix typo in cast (ssize_t) --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 89c2ef7..e9461ea 100644 --- a/util.c +++ b/util.c @@ -49,7 +49,7 @@ parseuri(const char *s, struct uri *u, int rel) /* IPv6 address */ if (*p == '[') { /* bracket not found or host too long */ - if (!(b = strchr(p, ']')) || (size_t)(b - p) >= (ssize_t)sizeof(u->host)) + if (!(b = strchr(p, ']')) || (size_t)(b - p) >= sizeof(u->host)) return -1; memcpy(u->host, p + 1, b - p - 1); u->host[b - p - 1] = '\0'; -- cgit v1.2.3