projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more muttng -> madmutt
[apps/madmutt.git]
/
getdomain.c
diff --git
a/getdomain.c
b/getdomain.c
index
ee711cc
..
204a693
100644
(file)
--- a/
getdomain.c
+++ b/
getdomain.c
@@
-15,6
+15,7
@@
#include <ctype.h>
#include <string.h>
#include <ctype.h>
#include <string.h>
+#include <lib-lib/file.h>
#include "mutt.h"
#ifndef STDC_HEADERS
#include "mutt.h"
#ifndef STDC_HEADERS
@@
-54,8
+55,7
@@
int getdnsdomainname (char *s, size_t l)
p = tmp;
while (ISSPACE (*p))
p++;
p = tmp;
while (ISSPACE (*p))
p++;
- if (str_ncmp ("domain", p, 6) == 0
- || str_ncmp ("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"))
p += 6;
for (q = strtok (p, " \t\n"); q; q = strtok (NULL, " \t\n"))
@@
-64,7
+64,7
@@
int getdnsdomainname (char *s, size_t l)
if (q) {
strip_trailing_dot (q);
if (q) {
strip_trailing_dot (q);
-
strfcpy (s, q, l
);
+
m_strcpy(s, l, q
);
safe_fclose (&f);
return 0;
}
safe_fclose (&f);
return 0;
}