changeset: 7104:742c96078159
user: Brendan Cully <[email protected]>
date: Wed Jul 12 21:20:24 2017 -0700
link: http://dev.mutt.org/hg/mutt/rev/742c96078159
bcache: cast to avoid implicit signed/unsigned comparison in bcache_path
diffs (12 lines):
diff -r 51d22025190a -r 742c96078159 bcache.c
--- a/bcache.c Wed Jul 12 12:39:28 2017 -0700
+++ b/bcache.c Wed Jul 12 21:20:24 2017 -0700
@@ -71,7 +71,7 @@
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));