diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-02-27 19:19:35 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-02-27 19:19:35 +0100 |
commit | d89d948c77f55ccfa56cbfe595e6474f070d0b2d (patch) | |
tree | 721c9005d7506fa07155a8fdc205d56367bfca79 | |
parent | 13d7b7a6df950c32162dcb157123bc47e1904b07 (diff) |
util: parseuri: fix typo in cast (ssize_t)
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'; |