bb267a3
To: vim-dev@vim.org
bb267a3
Subject: Patch 7.2.046
bb267a3
Fcc: outbox
bb267a3
From: Bram Moolenaar <Bram@moolenaar.net>
bb267a3
Mime-Version: 1.0
bb267a3
Content-Type: text/plain; charset=ISO-8859-1
bb267a3
Content-Transfer-Encoding: 8bit
bb267a3
------------
bb267a3
bb267a3
Patch 7.2.046
bb267a3
Problem:    Wrong check for filling buffer with encoding. (Danek Duvall)
bb267a3
Solution:   Remove pointers. (Dominique Pelle)
bb267a3
Files:	    src/mbyte.c
bb267a3
bb267a3
bb267a3
*** ../vim-7.2.045/src/mbyte.c	Wed Nov 12 13:07:48 2008
bb267a3
--- src/mbyte.c	Wed Nov 19 21:44:50 2008
bb267a3
***************
bb267a3
*** 3131,3137 ****
bb267a3
  	else
bb267a3
  	    s = p + 1;
bb267a3
      }
bb267a3
!     for (i = 0; s[i] != NUL && s + i < buf + sizeof(buf) - 1; ++i)
bb267a3
      {
bb267a3
  	if (s[i] == '_' || s[i] == '-')
bb267a3
  	    buf[i] = '-';
bb267a3
--- 3131,3137 ----
bb267a3
  	else
bb267a3
  	    s = p + 1;
bb267a3
      }
bb267a3
!     for (i = 0; s[i] != NUL && i < sizeof(buf) - 1; ++i)
bb267a3
      {
bb267a3
  	if (s[i] == '_' || s[i] == '-')
bb267a3
  	    buf[i] = '-';
bb267a3
*** ../vim-7.2.045/src/version.c	Thu Nov 20 11:04:01 2008
bb267a3
--- src/version.c	Thu Nov 20 11:54:23 2008
bb267a3
***************
bb267a3
*** 678,679 ****
bb267a3
--- 678,681 ----
bb267a3
  {   /* Add new patch number below this line */
bb267a3
+ /**/
bb267a3
+     46,
bb267a3
  /**/
bb267a3
bb267a3
-- 
bb267a3
       He was not in the least bit scared to be mashed into a pulp
bb267a3
       Or to have his eyes gouged out and his elbows broken;
bb267a3
       To have his kneecaps split and his body burned away
bb267a3
       And his limbs all hacked and mangled, brave Sir Robin.
bb267a3
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
bb267a3
bb267a3
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
bb267a3
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
bb267a3
\\\        download, build and distribute -- http://www.A-A-P.org        ///
bb267a3
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///