]> granicus.if.org Git - neomutt/commitdiff
Use only latest mtime of new/cur for browser, not whole stat() info
authorRocco Rutte <pdmef@gmx.net>
Thu, 11 Jun 2009 16:17:03 +0000 (18:17 +0200)
committerRocco Rutte <pdmef@gmx.net>
Thu, 11 Jun 2009 16:17:03 +0000 (18:17 +0200)
browser.c

index 7c2ac458f6b4cdf16868179df655a44df67c1d72..c05af0524cb250a38163908984e1f2af048b69e2 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -473,7 +473,7 @@ static int examine_mailboxes (MUTTMENU *menu, struct browser_state *state)
       if (stat (md, &st2) < 0)
        st2.st_mtime = 0;
       if (st2.st_mtime > s.st_mtime)
-       memcpy (&s, &st2, sizeof (struct stat));
+       s.st_mtime = st2.st_mtime;
     }
     
     strfcpy (buffer, NONULL(tmp->path), sizeof (buffer));