projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a whole lot of size_t -> ssize_t.
[apps/madmutt.git]
/
imap
/
browse.c
diff --git
a/imap/browse.c
b/imap/browse.c
index
e70ffbd
..
2cc16f8
100644
(file)
--- a/
imap/browse.c
+++ b/
imap/browse.c
@@
-264,7
+264,7
@@
int imap_mailbox_create (const char *folder)
/* append a delimiter if necessary */
n = m_strlen(buf);
/* append a delimiter if necessary */
n = m_strlen(buf);
- if (n && (n < sizeof (buf) - 1) && (buf[n - 1] != idata->delim)) {
+ if (n && (n < s
s
izeof (buf) - 1) && (buf[n - 1] != idata->delim)) {
buf[n++] = idata->delim;
buf[n] = '\0';
}
buf[n++] = idata->delim;
buf[n] = '\0';
}
@@
-419,7
+419,7
@@
static void imap_add_folder (char delim, char *folder, int noselect,
(state->entry)[state->entrylen].name = m_strdup(tmp);
/* mark desc with delim in browser if it can have subfolders */
(state->entry)[state->entrylen].name = m_strdup(tmp);
/* mark desc with delim in browser if it can have subfolders */
- if (!isparent && !noinferiors && m_strlen(relpath) < sizeof (relpath) - 1) {
+ if (!isparent && !noinferiors && m_strlen(relpath) < s
s
izeof (relpath) - 1) {
relpath[m_strlen(relpath) + 1] = '\0';
relpath[m_strlen(relpath)] = delim;
}
relpath[m_strlen(relpath) + 1] = '\0';
relpath[m_strlen(relpath)] = delim;
}