|
Karsten Hopp |
8d72d5 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
8d72d5 |
Subject: Patch 7.4.113
|
|
Karsten Hopp |
8d72d5 |
Fcc: outbox
|
|
Karsten Hopp |
8d72d5 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8d72d5 |
Mime-Version: 1.0
|
|
Karsten Hopp |
8d72d5 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
8d72d5 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8d72d5 |
------------
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
Patch 7.4.113
|
|
Karsten Hopp |
8d72d5 |
Problem: MSVC static analysis gives warnings.
|
|
Karsten Hopp |
8d72d5 |
Solution: Avoid the warnings and avoid possible bugs. (Ken Takata)
|
|
Karsten Hopp |
8d72d5 |
Files: src/os_win32.c
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
*** ../vim-7.4.112/src/os_win32.c 2013-11-21 12:34:07.000000000 +0100
|
|
Karsten Hopp |
8d72d5 |
--- src/os_win32.c 2013-12-07 14:41:35.000000000 +0100
|
|
Karsten Hopp |
8d72d5 |
***************
|
|
Karsten Hopp |
8d72d5 |
*** 2509,2515 ****
|
|
Karsten Hopp |
8d72d5 |
WCHAR *porig, *porigPrev;
|
|
Karsten Hopp |
8d72d5 |
int flen;
|
|
Karsten Hopp |
8d72d5 |
WIN32_FIND_DATAW fb;
|
|
Karsten Hopp |
8d72d5 |
! HANDLE hFind;
|
|
Karsten Hopp |
8d72d5 |
int c;
|
|
Karsten Hopp |
8d72d5 |
int slen;
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
--- 2509,2515 ----
|
|
Karsten Hopp |
8d72d5 |
WCHAR *porig, *porigPrev;
|
|
Karsten Hopp |
8d72d5 |
int flen;
|
|
Karsten Hopp |
8d72d5 |
WIN32_FIND_DATAW fb;
|
|
Karsten Hopp |
8d72d5 |
! HANDLE hFind = INVALID_HANDLE_VALUE;
|
|
Karsten Hopp |
8d72d5 |
int c;
|
|
Karsten Hopp |
8d72d5 |
int slen;
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
***************
|
|
Karsten Hopp |
8d72d5 |
*** 2528,2535 ****
|
|
Karsten Hopp |
8d72d5 |
/* copy leading drive letter */
|
|
Karsten Hopp |
8d72d5 |
*ptrue++ = *porig++;
|
|
Karsten Hopp |
8d72d5 |
*ptrue++ = *porig++;
|
|
Karsten Hopp |
8d72d5 |
- *ptrue = NUL; /* in case nothing follows */
|
|
Karsten Hopp |
8d72d5 |
}
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
while (*porig != NUL)
|
|
Karsten Hopp |
8d72d5 |
{
|
|
Karsten Hopp |
8d72d5 |
--- 2528,2535 ----
|
|
Karsten Hopp |
8d72d5 |
/* copy leading drive letter */
|
|
Karsten Hopp |
8d72d5 |
*ptrue++ = *porig++;
|
|
Karsten Hopp |
8d72d5 |
*ptrue++ = *porig++;
|
|
Karsten Hopp |
8d72d5 |
}
|
|
Karsten Hopp |
8d72d5 |
+ *ptrue = NUL; /* in case nothing follows */
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
while (*porig != NUL)
|
|
Karsten Hopp |
8d72d5 |
{
|
|
Karsten Hopp |
8d72d5 |
***************
|
|
Karsten Hopp |
8d72d5 |
*** 2673,2680 ****
|
|
Karsten Hopp |
8d72d5 |
/* copy leading drive letter */
|
|
Karsten Hopp |
8d72d5 |
*ptrue++ = *porig++;
|
|
Karsten Hopp |
8d72d5 |
*ptrue++ = *porig++;
|
|
Karsten Hopp |
8d72d5 |
- *ptrue = NUL; /* in case nothing follows */
|
|
Karsten Hopp |
8d72d5 |
}
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
while (*porig != NUL)
|
|
Karsten Hopp |
8d72d5 |
{
|
|
Karsten Hopp |
8d72d5 |
--- 2673,2680 ----
|
|
Karsten Hopp |
8d72d5 |
/* copy leading drive letter */
|
|
Karsten Hopp |
8d72d5 |
*ptrue++ = *porig++;
|
|
Karsten Hopp |
8d72d5 |
*ptrue++ = *porig++;
|
|
Karsten Hopp |
8d72d5 |
}
|
|
Karsten Hopp |
8d72d5 |
+ *ptrue = NUL; /* in case nothing follows */
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
while (*porig != NUL)
|
|
Karsten Hopp |
8d72d5 |
{
|
|
Karsten Hopp |
8d72d5 |
***************
|
|
Karsten Hopp |
8d72d5 |
*** 6272,6277 ****
|
|
Karsten Hopp |
8d72d5 |
--- 6272,6278 ----
|
|
Karsten Hopp |
8d72d5 |
while (i > 0)
|
|
Karsten Hopp |
8d72d5 |
free(argv[--i]);
|
|
Karsten Hopp |
8d72d5 |
free(argv);
|
|
Karsten Hopp |
8d72d5 |
+ argv = NULL;
|
|
Karsten Hopp |
8d72d5 |
argc = 0;
|
|
Karsten Hopp |
8d72d5 |
}
|
|
Karsten Hopp |
8d72d5 |
}
|
|
Karsten Hopp |
8d72d5 |
*** ../vim-7.4.112/src/version.c 2013-12-07 14:32:04.000000000 +0100
|
|
Karsten Hopp |
8d72d5 |
--- src/version.c 2013-12-07 14:37:48.000000000 +0100
|
|
Karsten Hopp |
8d72d5 |
***************
|
|
Karsten Hopp |
8d72d5 |
*** 740,741 ****
|
|
Karsten Hopp |
8d72d5 |
--- 740,743 ----
|
|
Karsten Hopp |
8d72d5 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8d72d5 |
+ /**/
|
|
Karsten Hopp |
8d72d5 |
+ 113,
|
|
Karsten Hopp |
8d72d5 |
/**/
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
--
|
|
Karsten Hopp |
8d72d5 |
How To Keep A Healthy Level Of Insanity:
|
|
Karsten Hopp |
8d72d5 |
15. Five days in advance, tell your friends you can't attend their
|
|
Karsten Hopp |
8d72d5 |
party because you're not in the mood.
|
|
Karsten Hopp |
8d72d5 |
|
|
Karsten Hopp |
8d72d5 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8d72d5 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8d72d5 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
8d72d5 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|