From: Brendan Cully Date: Thu, 13 Jul 2017 04:20:24 +0000 (-0700) Subject: bcache: cast to avoid implicit signed/unsigned comparison in bcache_path X-Git-Tag: mutt-1-9-rel~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be81608407e19e219cbc10bd571fcf7d67396e96;p=mutt bcache: cast to avoid implicit signed/unsigned comparison in bcache_path --- diff --git a/bcache.c b/bcache.c index 04c3b053..9ba6a860 100644 --- a/bcache.c +++ b/bcache.c @@ -71,7 +71,7 @@ static int bcache_path(ACCOUNT *account, const char *mailbox, dprint (3, (debugfile, "bcache_path: rc: %d, path: '%s'\n", len, dst)); - if (len < 0 || len >= dstlen-1) + if (len < 0 || (size_t)len >= dstlen-1) return -1; dprint (3, (debugfile, "bcache_path: directory: '%s'\n", dst));