X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=nntp%2Fnewsrc.c;h=94585e7e7985fc588e240b87b0c32615698d4bbd;hb=bec523bb3ad78ec9100efb18fb58d43d38b304de;hp=66ff3f282c860eb515223f76522e22038b3a2707;hpb=c98480f8568e6c1bc927c6c5f2b5e80b4aa6548c;p=apps%2Fmadmutt.git diff --git a/nntp/newsrc.c b/nntp/newsrc.c index 66ff3f2..94585e7 100644 --- a/nntp/newsrc.c +++ b/nntp/newsrc.c @@ -74,7 +74,7 @@ static int nntp_parse_newsrc_line (NNTP_SERVER * news, char *line) len = p + 1 - line; if (len > sizeof (group)) len = sizeof (group); - strfcpy (group, line, len); + m_strcpy(group, len, line); if ((data = (NNTP_DATA *) hash_find (news->newsgroups, group)) == NULL) { data = xmalloc(sizeof(NNTP_DATA) + m_strlen(group) + 1); data->group = (char *) data + sizeof (NNTP_DATA); @@ -184,7 +184,7 @@ static int nntp_parse_cacheindex (NNTP_SERVER * news) if (!NewsCacheDir || !*NewsCacheDir) return 0; - strfcpy (dir, NewsCacheDir, sizeof (dir)); + m_strcpy(dir, sizeof(dir), NewsCacheDir); mutt_expand_path (dir, sizeof (dir)); if (lstat (dir, &st) || (st.st_mode & S_IFDIR) == 0) { @@ -299,7 +299,7 @@ int nntp_parse_url (const char *server, ACCOUNT * acct, *group = '\0'; if (url.path) - strfcpy (group, url.path, group_len); + m_strcpy(group, group_len, url.path); ret = mutt_account_fromurl (acct, &url); } @@ -810,7 +810,7 @@ static int nntp_update_cacheindex (NNTP_SERVER * serv, NNTP_DATA * data) data->firstMessage, data->lastLoaded); } else { - strfcpy (file, serv->cache, sizeof (file)); + m_strcpy(file, sizeof(file), serv->cache); snprintf (buf, sizeof (buf), "ALL %s 0 %d", file, (int) serv->newgroups_time); } @@ -856,7 +856,7 @@ int nntp_save_cache_index (NNTP_SERVER * news) f = safe_fopen (file, "w"); } else { - strfcpy (buf, news->conn->account.host, sizeof (buf)); + m_strcpy(buf, sizeof(buf), news->conn->account.host); f = mutt_mkname (buf); news->cache = m_strdup(buf); nntp_cache_expand (file, buf);