Fix distributed fallback strcasestr - sacc - sacc(omys), simple console gopher client HTML git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/ DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit f606b3071219be1e8d30cd8cd059a513b668ab03 DIR parent 1a25a9312f4a0b028a5135b95a1861265eca8ed5 HTML Author: parazyd <parazyd@dyne.org> Date: Tue, 5 Jun 2018 14:32:16 +0200 Fix distributed fallback strcasestr Diffstat: M sacc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR 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')