From 8acabe2fc9601fbbf0357ef5626ed8907d6ef42b Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 31 Mar 2007 12:11:28 -0400 Subject: [PATCH] Add typecast to avoid a warning from some buggy Gentoo version of gcc. src/mod-blacklist.c (do_expandos): Typecast an expression that is supposed to have type size_t (which is unsigned) to unsigned. --- src/mod-blacklist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod-blacklist.c b/src/mod-blacklist.c index 7ae9526..c2d1e5e 100644 --- a/src/mod-blacklist.c +++ b/src/mod-blacklist.c @@ -68,7 +68,7 @@ do_expandos(char *output, unsigned int out_len, const char *input, ...) dlen = strlen(datum); for (found = output; (found = strstr(output, key)) != NULL; found += dlen) { rlen = strlen(found + klen); - if ((dlen > klen) && (found + dlen + rlen - output > out_len)) + if ((dlen > klen) && ((unsigned)(found + dlen + rlen - output) > out_len)) rlen = output + out_len - found - dlen; memmove(found + dlen, found + klen, rlen); memcpy(found, datum, dlen + 1); -- 2.20.1