Mirror of the Vim source from https://github.com/vim/vim
リビジョン | 1de53700b1d9f26a420a319d9c44ba0c43950035 (tree) |
---|---|
日時 | 2006-10-10 23:20:13 |
作者 | vimboss |
コミッター | vimboss |
updated for version 7.0-127
@@ -1633,6 +1633,7 @@ | ||
1633 | 1633 | int fd; |
1634 | 1634 | struct block0 b0; |
1635 | 1635 | time_t x = (time_t)0; |
1636 | + char *p; | |
1636 | 1637 | #ifdef UNIX |
1637 | 1638 | char_u uname[B0_UNAME_SIZE]; |
1638 | 1639 | #endif |
@@ -1652,8 +1653,11 @@ | ||
1652 | 1653 | #endif |
1653 | 1654 | MSG_PUTS(_(" dated: ")); |
1654 | 1655 | x = st.st_mtime; /* Manx C can't do &st.st_mtime */ |
1655 | - MSG_PUTS(ctime(&x)); /* includes '\n' */ | |
1656 | - | |
1656 | + p = ctime(&x); /* includes '\n' */ | |
1657 | + if (p == NULL) | |
1658 | + MSG_PUTS("(invalid)\n"); | |
1659 | + else | |
1660 | + MSG_PUTS(p); | |
1657 | 1661 | } |
1658 | 1662 | |
1659 | 1663 | /* |
@@ -3652,6 +3656,7 @@ | ||
3652 | 3656 | { |
3653 | 3657 | struct stat st; |
3654 | 3658 | time_t x, sx; |
3659 | + char *p; | |
3655 | 3660 | |
3656 | 3661 | ++no_wait_return; |
3657 | 3662 | (void)EMSG(_("E325: ATTENTION")); |
@@ -3666,7 +3671,11 @@ | ||
3666 | 3671 | { |
3667 | 3672 | MSG_PUTS(_(" dated: ")); |
3668 | 3673 | x = st.st_mtime; /* Manx C can't do &st.st_mtime */ |
3669 | - MSG_PUTS(ctime(&x)); | |
3674 | + p = ctime(&x); /* includes '\n' */ | |
3675 | + if (p == NULL) | |
3676 | + MSG_PUTS("(invalid)\n"); | |
3677 | + else | |
3678 | + MSG_PUTS(p); | |
3670 | 3679 | if (sx != 0 && x > sx) |
3671 | 3680 | MSG_PUTS(_(" NEWER than swap file!\n")); |
3672 | 3681 | } |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 127, | |
671 | +/**/ | |
670 | 672 | 126, |
671 | 673 | /**/ |
672 | 674 | 125, |