projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
a whole lot of size_t -> ssize_t.
[apps/madmutt.git]
/
mh.c
diff --git
a/mh.c
b/mh.c
index
5a68171
..
baff9e4
100644
(file)
--- a/
mh.c
+++ b/
mh.c
@@
-756,9
+756,7
@@
static int maildir_move_to_context (CONTEXT * ctx, struct maildir **md)
#ifdef USE_HCACHE
static size_t maildir_hcache_keylen (const char *fn)
{
- const char *p = strchr (fn, ':');
-
- return p ? (size_t) (p - fn) : m_strlen(fn);
+ return m_strchrnul(fn, ':') - fn;
}
#endif