]> granicus.if.org Git - mutt/commitdiff
Fix mutt_prety_mailbox. From Vsevolod.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 30 Aug 2000 08:38:12 +0000 (08:38 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 30 Aug 2000 08:38:12 +0000 (08:38 +0000)
muttlib.c

index 365e9327e423c67798a96c538589a4f7f236e9bb..45a1aef60381b80cfca2aa09fc14f76686cf80ba 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -671,9 +671,8 @@ void mutt_pretty_mailbox (char *s)
     if (!strncmp (p, "//", 2))
       q = strchr (p+2, '/');
     if (!q)
-      q = p;
-    else
-      p = q;
+      q = strchr (p, '\0');
+    p = q;
   }
   
   /* first attempt to collapse the pathname */