X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=getdomain.c;h=204a69363f6b9162bed821856cd772ad7cbe4c97;hp=d11c26d84539ea65bb7ded65c276e5a90cafc652;hb=97677c08933e16e25ecb3c12473ef1efdab7962b;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/getdomain.c b/getdomain.c index d11c26d..204a693 100644 --- a/getdomain.c +++ b/getdomain.c @@ -1,3 +1,12 @@ +/* + * 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 @@ -6,6 +15,7 @@ #include #include +#include #include "mutt.h" #ifndef STDC_HEADERS @@ -45,8 +55,7 @@ int getdnsdomainname (char *s, size_t l) 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")) @@ -55,7 +64,7 @@ int getdnsdomainname (char *s, size_t l) if (q) { strip_trailing_dot (q); - strfcpy (s, q, l); + m_strcpy(s, l, q); safe_fclose (&f); return 0; }