Deal with $hostname and $shorthost
[apps/madmutt.git] / lib-ui / status.c
index 9c4bdf9..2ca8f9d 100644 (file)
@@ -98,7 +98,7 @@ status_format_str(char *buf, ssize_t buflen, char op, const char *src,
 
   case 'h':
     snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
-    snprintf (buf, buflen, fmt, NONULL (Hostname));
+    snprintf (buf, buflen, fmt, NONULL (MCore.shorthost));
     break;
 
   case 'f':
@@ -256,7 +256,7 @@ status_format_str(char *buf, ssize_t buflen, char op, const char *src,
     break;
 
   case 'v':
-    m_strcpy(buf, buflen, mutt_make_version(0));
+    m_strcpy(buf, buflen, mutt_make_version());
     break;
 
   case 'V':