projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove yet anoter round of str_* functions, replaced with their inlineable
[apps/madmutt.git]
/
imap
/
browse.c
diff --git
a/imap/browse.c
b/imap/browse.c
index
54d608b
..
9025dab
100644
(file)
--- a/
imap/browse.c
+++ b/
imap/browse.c
@@
-365,7
+365,7
@@
static int browse_add_list_result (IMAP_DATA * idata, const char *cmd,
if (isparent)
noselect = 1;
/* prune current folder from output */
if (isparent)
noselect = 1;
/* prune current folder from output */
- if (isparent ||
str_ncmp
(name, mx.mbox, m_strlen(name)))
+ if (isparent ||
m_strncmp
(name, mx.mbox, m_strlen(name)))
imap_add_folder (idata->delim, name, noselect, noinferiors, state,
isparent);
}
imap_add_folder (idata->delim, name, noselect, noinferiors, state,
isparent);
}
@@
-401,7
+401,7
@@
static void imap_add_folder (char delim, char *folder, int noselect,
if (isparent)
strfcpy (relpath, "../", sizeof (relpath));
/* strip current folder from target, to render a relative path */
if (isparent)
strfcpy (relpath, "../", sizeof (relpath));
/* strip current folder from target, to render a relative path */
- else if (!
str_ncmp
(mx.mbox, folder, m_strlen(mx.mbox)))
+ else if (!
m_strncmp
(mx.mbox, folder, m_strlen(mx.mbox)))
strfcpy (relpath, folder + m_strlen(mx.mbox), sizeof (relpath));
else
strfcpy (relpath, folder, sizeof (relpath));
strfcpy (relpath, folder + m_strlen(mx.mbox), sizeof (relpath));
else
strfcpy (relpath, folder, sizeof (relpath));