reimplement mutt_gecos_name.
[apps/madmutt.git] / init.c
diff --git a/init.c b/init.c
index bb8bedb..5151f5a 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2608,7 +2608,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 ();
   }