sacc

sacc(omys), simple console gopher client (mirror)
git clone https://git.parazyd.org/sacc
Log | Files | Refs | LICENSE

commit f606b3071219be1e8d30cd8cd059a513b668ab03
parent 1a25a9312f4a0b028a5135b95a1861265eca8ed5
Author: parazyd <parazyd@dyne.org>
Date:   Tue,  5 Jun 2018 14:32:16 +0200

Fix distributed fallback strcasestr

Diffstat:
Msacc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sacc.c b/sacc.c @@ -70,9 +70,9 @@ strcasestr(const char *h, const char *n) size_t i; if (!n[0]) - return h; + return (char *)h; - for (; *h; ++h{ + for (; *h; ++h) { for (i = 0; n[i] && tolower(n[i]) == tolower(h[i]); ++i) ; if (n[i] == '\0')