projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop the horrible list2_t for good.
[apps/madmutt.git]
/
imap
/
imap.c
diff --git
a/imap/imap.c
b/imap/imap.c
index
e426e33
..
fe99c06
100644
(file)
--- a/
imap/imap.c
+++ b/
imap/imap.c
@@
-1434,10
+1434,10
@@
static int imap_complete_hosts (char *dest, ssize_t len) {
int i = 0;
matchlen = m_strlen(dest);
int i = 0;
matchlen = m_strlen(dest);
- if (
list_empty (Incoming)
)
+ if (
!Incoming.len
)
return (-1);
return (-1);
- for (i = 0; i < Incoming
->length
; i++) {
- mailbox =
(BUFFY*) Incoming->data
[i];
+ for (i = 0; i < Incoming
.len
; i++) {
+ mailbox =
Incoming.arr
[i];
if (!m_strncmp(dest, mailbox->path, matchlen)) {
if (rc) {
m_strcpy(dest, len, mailbox->path);
if (!m_strncmp(dest, mailbox->path, matchlen)) {
if (rc) {
m_strcpy(dest, len, mailbox->path);