]> granicus.if.org Git - mutt/commitdiff
Fix ~logname expansion.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 21 Jun 2000 15:18:51 +0000 (15:18 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 21 Jun 2000 15:18:51 +0000 (15:18 +0000)
muttlib.c

index 8f0dc8ad1e5d04a01d32456f1bc814b64a53387d..ff2333b5d3914ebc6e8e057bdbdbeea950a559aa 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -329,11 +329,15 @@ char *_mutt_expand_path (char *s, size_t slen, int rx)
          struct passwd *pw;
          if ((t = strchr (s + 1, '/'))) 
            *t = 0;
+
          if ((pw = getpwnam (s + 1)))
          {
            strfcpy (p, pw->pw_dir, sizeof (p));
            if (t)
-             tail = t + 1;
+           {
+             *t = '/';
+             tail = t;
+           }
            else
              tail = "";
          }