4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Crash when swap files has invalid timestamp.
12 Solution: Check return value of ctime() for being NULL.
16 *** ../vim-7.0.126/src/memline.c Tue Aug 29 17:28:56 2006
17 --- src/memline.c Tue Oct 10 16:19:56 2006
26 char_u uname[B0_UNAME_SIZE];
31 MSG_PUTS(_(" dated: "));
32 x = st.st_mtime; /* Manx C can't do &st.st_mtime */
33 ! MSG_PUTS(ctime(&x)); /* includes '\n' */
40 MSG_PUTS(_(" dated: "));
41 x = st.st_mtime; /* Manx C can't do &st.st_mtime */
42 ! p = ctime(&x); /* includes '\n' */
44 ! MSG_PUTS("(invalid)\n");
59 (void)EMSG(_("E325: ATTENTION"));
63 MSG_PUTS(_(" dated: "));
64 x = st.st_mtime; /* Manx C can't do &st.st_mtime */
65 ! MSG_PUTS(ctime(&x));
66 if (sx != 0 && x > sx)
67 MSG_PUTS(_(" NEWER than swap file!\n"));
71 MSG_PUTS(_(" dated: "));
72 x = st.st_mtime; /* Manx C can't do &st.st_mtime */
73 ! p = ctime(&x); /* includes '\n' */
75 ! MSG_PUTS("(invalid)\n");
78 if (sx != 0 && x > sx)
79 MSG_PUTS(_(" NEWER than swap file!\n"));
81 *** ../vim-7.0.126/src/version.c Tue Oct 10 15:49:41 2006
82 --- src/version.c Tue Oct 10 16:18:51 2006
86 { /* Add new patch number below this line */
92 How To Keep A Healthy Level Of Insanity:
93 17. When the money comes out the ATM, scream "I won!, I won! 3rd
96 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
97 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
98 \\\ download, build and distribute -- http://www.A-A-P.org ///
99 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///