X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fbrowse.c;fp=imap%2Fbrowse.c;h=2cc16f8fa926f1bd5ca58068efa8d64d1e405480;hp=e70ffbdddcf7acbe9341b2cf1f2088ff12e065d8;hb=ac813896ca32d850febc2d95065ac4fa040f11f9;hpb=10e80e482eff3762b0b8d41b0c7795b76704479c diff --git a/imap/browse.c b/imap/browse.c index e70ffbd..2cc16f8 100644 --- 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); - if (n && (n < sizeof (buf) - 1) && (buf[n - 1] != idata->delim)) { + if (n && (n < ssizeof (buf) - 1) && (buf[n - 1] != idata->delim)) { 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 */ - if (!isparent && !noinferiors && m_strlen(relpath) < sizeof (relpath) - 1) { + if (!isparent && !noinferiors && m_strlen(relpath) < ssizeof (relpath) - 1) { relpath[m_strlen(relpath) + 1] = '\0'; relpath[m_strlen(relpath)] = delim; }