X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=nntp%2Fnntp.c;h=7eae0112bbb089d96e732b44ab142ae1639c4176;hb=9eb3b25249e78d778b6d0583b06a7c5615709e63;hp=2977f0c94ed5c7c5177b6a3e53437e99b76ab4bf;hpb=108f3c7ab59844591f7540347914ea57be5245e2;p=apps%2Fmadmutt.git diff --git a/nntp/nntp.c b/nntp/nntp.c index 2977f0c..7eae011 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -370,7 +370,7 @@ static int mutt_nntp_fetch (NNTP_DATA * nntp_data, const char *query, char *msg, m_strcpy(inbuf + lenbuf, sizeof(buf), p); pos += chunk; - if (chunk >= sizeof (buf)) { + if (chunk >= ssizeof (buf)) { lenbuf += m_strlen(p); } else { @@ -848,18 +848,18 @@ int nntp_open_mailbox (CONTEXT * ctx) char server[LONG_STRING]; int count = 0; unsigned int first; - ACCOUNT acct; + ACCOUNT act; - p_clear(&acct, 1); + p_clear(&act, 1); - if (nntp_parse_url (ctx->path, &acct, buf, sizeof (buf)) < 0 || !*buf) { + if (nntp_parse_url (ctx->path, &act, buf, sizeof (buf)) < 0 || !*buf) { mutt_error (_("%s is an invalid newsgroup specification!"), ctx->path); mutt_sleep (2); return -1; } server[0] = '\0'; - nntp_expand_path (server, sizeof (server), &acct); + nntp_expand_path (server, sizeof (server), &act); if (!(serv = mutt_select_newsserver (server)) || serv->status != NNTP_OK) return -1;