| skipped 603 lines |
604 | 604 | | |
605 | 605 | | const short c_debug_level = cs_subset_number(NeoMutt->sub, "debug_level"); |
606 | 606 | | if (c_debug_level >= IMAP_LOG_LTRL) |
607 | | - | mutt_buffer_alloc(&buf, bytes + 10); |
| 607 | + | mutt_buffer_alloc(&buf, bytes + 1); |
608 | 608 | | |
609 | | - | mutt_debug(LL_DEBUG2, "reading %ld bytes\n", bytes); |
| 609 | + | mutt_debug(LL_DEBUG2, "reading %lu bytes\n", bytes); |
610 | 610 | | |
611 | 611 | | for (unsigned long pos = 0; pos < bytes; pos++) |
612 | 612 | | { |
613 | 613 | | if (mutt_socket_readchar(adata->conn, &c) != 1) |
614 | 614 | | { |
615 | | - | mutt_debug(LL_DEBUG1, "error during read, %ld bytes read\n", pos); |
| 615 | + | mutt_debug(LL_DEBUG1, "error during read, %lu bytes read\n", pos); |
616 | 616 | | adata->status = IMAP_FATAL; |
617 | 617 | | |
618 | 618 | | mutt_buffer_dealloc(&buf); |
| skipped 1896 lines |