+/*
+ * Copyright notice from original mutt:
+ * [none]
+ *
+ * This file is part of mutt-ng, see http://www.muttng.org/.
+ * It's licensed under the GNU General Public License,
+ * please see the file GPL in the top level source directory.
+ */
+
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <ctype.h>
#include <string.h>
+#include <lib-lib/file.h>
#include "mutt.h"
#ifndef STDC_HEADERS
p = tmp;
while (ISSPACE (*p))
p++;
- if (mutt_strncmp ("domain", p, 6) == 0
- || mutt_strncmp ("search", p, 6) == 0) {
+ if (m_strncmp("domain", p, 6) == 0 || m_strncmp("search", p, 6) == 0) {
p += 6;
for (q = strtok (p, " \t\n"); q; q = strtok (NULL, " \t\n"))
if (q) {
strip_trailing_dot (q);
- strfcpy (s, q, l);
+ m_strcpy(s, l, q);
safe_fclose (&f);
return 0;
}