projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nico Golde:
[apps/madmutt.git]
/
imap
/
message.c
diff --git
a/imap/message.c
b/imap/message.c
index
6217993
..
08a9d3f
100644
(file)
--- a/
imap/message.c
+++ b/
imap/message.c
@@
-71,7
+71,7
@@
int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend)
#if USE_HCACHE
void *hc = NULL;
#if USE_HCACHE
void *hc = NULL;
- u
int64_t
*uid_validity = NULL;
+ u
nsigned long
*uid_validity = NULL;
char uid_buf[64];
#endif /* USE_HCACHE */
char uid_buf[64];
#endif /* USE_HCACHE */
@@
-154,7
+154,7
@@
int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend)
sprintf (uid_buf, "/%u", h.data->uid); /* XXX --tg 21:41 04-07-11 */
uid_validity =
sprintf (uid_buf, "/%u", h.data->uid); /* XXX --tg 21:41 04-07-11 */
uid_validity =
- (u
int64_t
*) mutt_hcache_fetch (hc, uid_buf, &imap_hcache_keylen);
+ (u
nsigned long
*) mutt_hcache_fetch (hc, uid_buf, &imap_hcache_keylen);
if (uid_validity != NULL && *uid_validity == idata->uid_validity) {
ctx->hdrs[msgno] =
if (uid_validity != NULL && *uid_validity == idata->uid_validity) {
ctx->hdrs[msgno] =
@@
-882,7
+882,7
@@
static int msg_fetch_header (CONTEXT * ctx, IMAP_HEADER * h, char *buf,
#if USE_HCACHE
static size_t imap_hcache_keylen (const char *fn)
{
#if USE_HCACHE
static size_t imap_hcache_keylen (const char *fn)
{
- return
mutt
_strlen (fn);
+ return
safe
_strlen (fn);
}
/* msg_fetch_header: import IMAP FETCH response into an IMAP_HEADER.
}
/* msg_fetch_header: import IMAP FETCH response into an IMAP_HEADER.
@@
-938,7
+938,7
@@
static int msg_has_flag (LIST * flag_list, const char *flag)
flag_list = flag_list->next;
while (flag_list) {
flag_list = flag_list->next;
while (flag_list) {
- if (!ascii_strncasecmp (flag_list->data, flag,
mutt
_strlen (flag_list->data)))
+ if (!ascii_strncasecmp (flag_list->data, flag,
safe
_strlen (flag_list->data)))
return 1;
flag_list = flag_list->next;
return 1;
flag_list = flag_list->next;