sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit d89d948c77f55ccfa56cbfe595e6474f070d0b2d
parent 13d7b7a6df950c32162dcb157123bc47e1904b07
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 27 Feb 2019 19:19:35 +0100

util: parseuri: fix typo in cast (ssize_t)

Diffstat:
Mutil.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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';