Mercurial > vim
comparison src/screen.c @ 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 | 63613d8d7e4d |
children | dc8a5699253b |
comparison
equal
deleted
inserted
replaced
2121:20d9fc2f13a4 | 2122:476336a5ae95 |
---|---|
7534 #endif | 7534 #endif |
7535 | 7535 |
7536 new_ScreenLines = (schar_T *)lalloc((long_u)( | 7536 new_ScreenLines = (schar_T *)lalloc((long_u)( |
7537 (Rows + 1) * Columns * sizeof(schar_T)), FALSE); | 7537 (Rows + 1) * Columns * sizeof(schar_T)), FALSE); |
7538 #ifdef FEAT_MBYTE | 7538 #ifdef FEAT_MBYTE |
7539 vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T) * MAX_MCO); | 7539 vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T *) * MAX_MCO); |
7540 if (enc_utf8) | 7540 if (enc_utf8) |
7541 { | 7541 { |
7542 new_ScreenLinesUC = (u8char_T *)lalloc((long_u)( | 7542 new_ScreenLinesUC = (u8char_T *)lalloc((long_u)( |
7543 (Rows + 1) * Columns * sizeof(u8char_T)), FALSE); | 7543 (Rows + 1) * Columns * sizeof(u8char_T)), FALSE); |
7544 for (i = 0; i < p_mco; ++i) | 7544 for (i = 0; i < p_mco; ++i) |