X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=nntp%2Fnntp.c;h=d5b799195bb5b436a89c3b3e014b500f2044270a;hb=4cc118a3b000432ed836cc21518a09b32bc0322f;hp=ca3e51edc33d253555ed9a1ec556cac14b83851a;hpb=c98480f8568e6c1bc927c6c5f2b5e80b4aa6548c;p=apps%2Fmadmutt.git diff --git a/nntp/nntp.c b/nntp/nntp.c index ca3e51e..d5b7991 100644 --- a/nntp/nntp.c +++ b/nntp/nntp.c @@ -18,12 +18,13 @@ #include #include +#include + #include "mutt.h" #include "mutt_curses.h" #include "sort.h" #include "mx.h" #include "mx_nntp.h" -#include "mime.h" #include "rfc1524.h" #include "rfc2047.h" #include "nntp.h" @@ -311,7 +312,7 @@ static int mutt_nntp_query (NNTP_DATA * data, char *line, size_t linelen) return -1; } while (!done); - strfcpy (line, buf, linelen); + m_strcpy(line, linelen, buf); return 0; } @@ -338,7 +339,7 @@ static int mutt_nntp_fetch (NNTP_DATA * nntp_data, const char *query, char *msg, int ret; do { - strfcpy (buf, query, sizeof (buf)); + m_strcpy(buf, sizeof(buf), query); if (mutt_nntp_query (nntp_data, buf, sizeof (buf)) < 0) return -1; if (buf[0] == '5') @@ -366,7 +367,7 @@ static int mutt_nntp_fetch (NNTP_DATA * nntp_data, const char *query, char *msg, p++; } - strfcpy (inbuf + lenbuf, p, sizeof (buf)); + m_strcpy(inbuf + lenbuf, sizeof(buf), p); pos += chunk; if (chunk >= sizeof (buf)) { @@ -1039,7 +1040,7 @@ int nntp_post (const char *msg) return -1; } - strfcpy (buf, "POST\r\n", sizeof (buf)); + m_strcpy(buf, sizeof(buf), "POST\r\n"); if (mutt_nntp_query (nntp_data, buf, sizeof (buf)) < 0) { mutt_error (_("Can't post article. Connection to %s lost."), nntp_data->nserv->conn->account.host); @@ -1431,7 +1432,7 @@ int nntp_get_active (NNTP_SERVER * serv) return -1; } - strfcpy (msg, _("Loading descriptions..."), sizeof (msg)); + m_strcpy(msg, sizeof(msg), _("Loading descriptions...")); mutt_message (msg); nntp_get_desc (&nntp_data, "*", msg, NULL);