Karsten Hopp 121c85
To: vim-dev@vim.org
Karsten Hopp 121c85
Subject: Patch 7.2.404
Karsten Hopp 121c85
Fcc: outbox
Karsten Hopp 121c85
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 121c85
Mime-Version: 1.0
Karsten Hopp 121c85
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 121c85
Content-Transfer-Encoding: 8bit
Karsten Hopp 121c85
------------
Karsten Hopp 121c85
Karsten Hopp 121c85
Patch 7.2.404
Karsten Hopp 121c85
Problem:    Pointers for composing characters are not properly initialized.
Karsten Hopp 121c85
Solution:   Compute the size of the pointer, not what it points to. (Yukihiro
Karsten Hopp 121c85
	    Nakadaira)
Karsten Hopp 121c85
Files:	    src/screen.c
Karsten Hopp 121c85
Karsten Hopp 121c85
Karsten Hopp 121c85
*** ../vim-7.2.403/src/screen.c	2010-02-03 15:47:59.000000000 +0100
Karsten Hopp 121c85
--- src/screen.c	2010-03-23 13:48:05.000000000 +0100
Karsten Hopp 121c85
***************
Karsten Hopp 121c85
*** 7536,7542 ****
Karsten Hopp 121c85
      new_ScreenLines = (schar_T *)lalloc((long_u)(
Karsten Hopp 121c85
  			      (Rows + 1) * Columns * sizeof(schar_T)), FALSE);
Karsten Hopp 121c85
  #ifdef FEAT_MBYTE
Karsten Hopp 121c85
!     vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T) * MAX_MCO);
Karsten Hopp 121c85
      if (enc_utf8)
Karsten Hopp 121c85
      {
Karsten Hopp 121c85
  	new_ScreenLinesUC = (u8char_T *)lalloc((long_u)(
Karsten Hopp 121c85
--- 7536,7542 ----
Karsten Hopp 121c85
      new_ScreenLines = (schar_T *)lalloc((long_u)(
Karsten Hopp 121c85
  			      (Rows + 1) * Columns * sizeof(schar_T)), FALSE);
Karsten Hopp 121c85
  #ifdef FEAT_MBYTE
Karsten Hopp 121c85
!     vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T *) * MAX_MCO);
Karsten Hopp 121c85
      if (enc_utf8)
Karsten Hopp 121c85
      {
Karsten Hopp 121c85
  	new_ScreenLinesUC = (u8char_T *)lalloc((long_u)(
Karsten Hopp 121c85
*** ../vim-7.2.403/src/version.c	2010-03-19 23:08:22.000000000 +0100
Karsten Hopp 121c85
--- src/version.c	2010-03-23 13:54:47.000000000 +0100
Karsten Hopp 121c85
***************
Karsten Hopp 121c85
*** 683,684 ****
Karsten Hopp 121c85
--- 683,686 ----
Karsten Hopp 121c85
  {   /* Add new patch number below this line */
Karsten Hopp 121c85
+ /**/
Karsten Hopp 121c85
+     404,
Karsten Hopp 121c85
  /**/
Karsten Hopp 121c85
Karsten Hopp 121c85
-- 
Karsten Hopp 121c85
LAUNCELOT: Isn't there a St. Aaaaarrrrrrggghhh's in Cornwall?
Karsten Hopp 121c85
ARTHUR:    No, that's Saint Ives.
Karsten Hopp 121c85
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 121c85
Karsten Hopp 121c85
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 121c85
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 121c85
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 121c85
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///