diff options
author | Kevin McCarthy <kevin@8t8.us> | 2018-01-06 15:55:17 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2018-01-06 15:55:17 -0800 |
commit | 8fcf8edaeff52e98cb61d75e06c3dd4a2ca19046 (patch) | |
tree | 38522d7c03ed28cf6784cd228ee9725e5a775fb8 /imap/message.c | |
parent | b8190ef365953b525e319bd26c895afa9c8d2a7e (diff) |
Change imap literal counts to parse and store unsigned ints.
IMAP literals are of type number. Change imap_get_literal_count() to
use mutt_atoui() instead of atoi(). Change the return type variables
used to store the count to type unsigned int.
It's doubtful this was a real issue, but as long as we're cleaning up
incorrect atoi() usage, we should fix this too.
Diffstat (limited to 'imap/message.c')
-rw-r--r-- | imap/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/imap/message.c b/imap/message.c index 4caa29e4..8bc387b5 100644 --- a/imap/message.c +++ b/imap/message.c @@ -529,7 +529,7 @@ int imap_fetch_message (CONTEXT *ctx, MESSAGE *msg, int msgno) char buf[LONG_STRING]; char path[_POSIX_PATH_MAX]; char *pc; - long bytes; + unsigned int bytes; progress_t progressbar; unsigned int uid; int cacheno; @@ -1234,7 +1234,7 @@ char* imap_set_flags (IMAP_DATA* idata, HEADER* h, char* s) static int msg_fetch_header (CONTEXT* ctx, IMAP_HEADER* h, char* buf, FILE* fp) { IMAP_DATA* idata; - long bytes; + unsigned int bytes; int rc = -1; /* default now is that string isn't FETCH response*/ int parse_rc; |