Mercurial > vim
changeset 2122:476336a5ae95 v7.2.404
updated for version 7.2.404
Problem: Pointers for composing characters are not properly initialized.
Solution: Compute the size of the pointer, not what it points to. (Yukihiro
Nakadaira)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Tue, 23 Mar 2010 13:56:59 +0100 |
parents | 20d9fc2f13a4 |
children | b1706a94f9f9 |
files | src/screen.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -7536,7 +7536,7 @@ retry: 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)(