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