projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace SKIPWS with a proper inline func with the right API.
[apps/madmutt.git]
/
sidebar.c
diff --git
a/sidebar.c
b/sidebar.c
index
905a6da
..
ab95a22
100644
(file)
--- a/
sidebar.c
+++ b/
sidebar.c
@@
-211,12
+211,12
@@
int make_sidebar_entry (char* box, int idx, size_t len)
memset(&entry, ' ', sizeof(entry));
#if USE_IMAP
memset(&entry, ' ', sizeof(entry));
#if USE_IMAP
- if (l > 0 &&
str_ncmp
(box, ImapHomeNamespace, l) == 0 &&
+ if (l > 0 &&
m_strncmp
(box, ImapHomeNamespace, l) == 0 &&
m_strlen(box) > l)
box += l + 1; /* we're trimming the ImapHomeNamespace, the "+ 1" is for the separator */
else
#endif
m_strlen(box) > l)
box += l + 1; /* we're trimming the ImapHomeNamespace, the "+ 1" is for the separator */
else
#endif
- if (l_m > 0 &&
str_ncmp
(box, Maildir, l_m) == 0 &&
+ if (l_m > 0 &&
m_strncmp
(box, Maildir, l_m) == 0 &&
m_strlen(box) > l_m) {
box += l_m;
if (Maildir[strlen(Maildir)-1]!='/') {
m_strlen(box) > l_m) {
box += l_m;
if (Maildir[strlen(Maildir)-1]!='/') {
@@
-230,9
+230,9
@@
int make_sidebar_entry (char* box, int idx, size_t len)
shortened = 1;
}
shortened = 1;
}
-
snprintf (entry, len-lencnt, "%s"
, box);
+
m_strcpy(entry, len - lencnt
, box);
entry[m_strlen(entry)] = ' ';
entry[m_strlen(entry)] = ' ';
-
strncpy
(entry + (len - lencnt), no, lencnt);
+
memcpy
(entry + (len - lencnt), no, lencnt);
addnstr (entry, len);
addnstr (entry, len);