Yukihiro Nakadaira wrote:

> Incorrect type is used for memory size calculation.
> Please check the following line.
> 
> --- a/src/screen.c
> +++ b/src/screen.c
> @@ -7536,7 +7536,7 @@
>      new_ScreenLines = (schar_T *)lalloc((long_u)(
>                             (Rows + 1) * Columns * sizeof(schar_T)), FALSE);
>  #ifdef FEAT_MBYTE
> -    vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T) * MAX_MCO);
> +    vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T *) * MAX_MCO);
>      if (enc_utf8)
>      {
>       new_ScreenLinesUC = (u8char_T *)lalloc((long_u)(
> 

Good catch.  Thanks for sending the fix.

-- 
ARTHUR:          But if he was dying, he wouldn't bother to carve
                 "Aaaaarrrrrrggghhh".  He'd just say it.
BROTHER MAYNARD: It's down there carved in stone.
GALAHAD:         Perhaps he was dictating.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to 
vim_dev+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Raspunde prin e-mail lui