X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=init.c;h=f6efc621b2f96f6382a9d5d6afab23dea8c22f3c;hb=d23094706c228c63c7c7ab8f337fb5dd886c4109;hp=bb8bedbb9708c46ad2e43e6a04243aa9e212a6bc;hpb=ccf2b75a9ed50a79c4d8e5d6235c7313fcd3719a;p=apps%2Fmadmutt.git diff --git a/init.c b/init.c index bb8bedb..f6efc62 100644 --- a/init.c +++ b/init.c @@ -24,6 +24,8 @@ #include #include +#include + #include #include "mutt.h" @@ -2608,7 +2610,8 @@ void mutt_init (int skip_sys_rc, LIST * commands) if (!Homedir) Homedir = m_strdup(pw->pw_dir); - Realname = m_strdup(mutt_gecos_name (rnbuf, sizeof(rnbuf), pw)); + mutt_gecos_name(rnbuf, sizeof(rnbuf), pw, GecosMask.rx); + Realname = m_strdup(rnbuf); Shell = m_strdup(pw->pw_shell); endpwent (); } @@ -2641,7 +2644,7 @@ void mutt_init (int skip_sys_rc, LIST * commands) else Hostname = m_strdup(utsname.nodename); - if (!p && getdnsdomainname (buffer, sizeof(buffer)) == -1) + if (!p && getdnsdomainname(buffer, sizeof(buffer)) == -1) Fqdn = m_strdup("@"); else if (*buffer != '@') {