diff options
author | vimboss <devnull@localhost> | 2006-10-10 14:20:13 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2006-10-10 14:20:13 +0000 |
commit | 8e137fe12a0ee9898f79f1c3bcf30e59529ea2e4 (patch) | |
tree | 8ec862e4036c592282614189778c17ac869bfeb4 | |
parent | b9af2da129040c9695ff2867facac54a8e4f0a0e (diff) | |
download | vim-8e137fe12a0ee9898f79f1c3bcf30e59529ea2e4.tar.gz |
-rw-r--r-- | src/memline.c | 15 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/memline.c b/src/memline.c index 6ea2dc5d..5c55e70f 100644 --- a/src/memline.c +++ b/src/memline.c @@ -1633,6 +1633,7 @@ swapfile_info(fname) int fd; struct block0 b0; time_t x = (time_t)0; + char *p; #ifdef UNIX char_u uname[B0_UNAME_SIZE]; #endif @@ -1652,8 +1653,11 @@ swapfile_info(fname) #endif MSG_PUTS(_(" dated: ")); x = st.st_mtime; /* Manx C can't do &st.st_mtime */ - MSG_PUTS(ctime(&x)); /* includes '\n' */ - + p = ctime(&x); /* includes '\n' */ + if (p == NULL) + MSG_PUTS("(invalid)\n"); + else + MSG_PUTS(p); } /* @@ -3652,6 +3656,7 @@ attention_message(buf, fname) { struct stat st; time_t x, sx; + char *p; ++no_wait_return; (void)EMSG(_("E325: ATTENTION")); @@ -3666,7 +3671,11 @@ attention_message(buf, fname) { MSG_PUTS(_(" dated: ")); x = st.st_mtime; /* Manx C can't do &st.st_mtime */ - MSG_PUTS(ctime(&x)); + p = ctime(&x); /* includes '\n' */ + if (p == NULL) + MSG_PUTS("(invalid)\n"); + else + MSG_PUTS(p); if (sx != 0 && x > sx) MSG_PUTS(_(" NEWER than swap file!\n")); } diff --git a/src/version.c b/src/version.c index 5c568524..d0cb708d 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 127, +/**/ 126, /**/ 125, |