From: Phil Carmody Date: Thu, 30 Aug 2018 08:38:41 +0000 (+0300) Subject: pop3: use array interface rather than internal buffer to access data X-Git-Tag: 2.3.9~1486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d1c335716bf75f2e751cd7272fd4f7feca2b6d0;p=thirdparty%2Fdovecot%2Fcore.git pop3: use array interface rather than internal buffer to access data Signed-off-by: Phil Carmody --- diff --git a/src/pop3/pop3-client.c b/src/pop3/pop3-client.c index c6d58bb8b8..4471e75e19 100644 --- a/src/pop3/pop3-client.c +++ b/src/pop3/pop3-client.c @@ -224,12 +224,12 @@ static int read_mailbox(struct client *client, uint32_t *failed_uid_r) client->trans = t; client->message_sizes = - buffer_free_without_data(&message_sizes.arr.buffer); + array_free_without_data(&message_sizes); if (array_is_created(&msgnum_to_seq_map)) { client->msgnum_to_seq_map_count = array_count(&msgnum_to_seq_map); client->msgnum_to_seq_map = - buffer_free_without_data(&msgnum_to_seq_map.arr.buffer); + array_free_without_data(&msgnum_to_seq_map); } return 1; }