X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fmts.c;h=cb11a776891bc843fce71789ef9b6fe54c1e0ddf;hb=5ccbd49adba7e6d48f4094fa6eade7a7fb8ec4cf;hp=556d7400cecc82299a88d251e46b2a757f103fe6;hpb=f423b06bf5ab4a966b17857f027a46e74447f438;p=mmh diff --git a/sbr/mts.c b/sbr/mts.c index 556d740..cb11a77 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -64,7 +64,6 @@ static char localmbox[BUFSIZ]; */ static char *sm_method = "smtp"; int sm_mts = MTS_SMTP; -char *hostable = nmhetcdir(/hosts); char *sendmail = SENDMAILPATH; /* @@ -108,7 +107,6 @@ static struct bind binds[] = { { "mmdelim1", &mmdlm1 }, { "mmdelim2", &mmdlm2 }, { "mts", &sm_method }, - { "hostable", &hostable }, { "sendmail", &sendmail }, { "clientname", &clientname }, { "servers", &servers }, @@ -129,11 +127,10 @@ static struct bind binds[] = { void mts_init (char *name) { - NMH_UNUSED (name); - const char *cp; FILE *fp; static int inited = 0; + NMH_UNUSED (name); if (inited++ || (fp = fopen (get_mtsconf_pathname(), "r")) == NULL) return; @@ -397,7 +394,7 @@ getuserinfo (void) fullname[sizeof(fullname) - 1] = '\0'; - escape_display_name(fullname); + escape_display_name(fullname, sizeof(fullname)); localmbox[0] = '\0';