Deal with $hostname and $shorthost
[apps/madmutt.git] / lib-ui / status.c
index 02d38b2..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);
 
   case 'h':
     snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
-    snprintf (buf, buflen, fmt, NONULL (Hostname));
+    snprintf (buf, buflen, fmt, NONULL (MCore.shorthost));
     break;
 
   case 'f':
     break;
 
   case 'f':