]> granicus.if.org Git - vim/commitdiff
patch 8.2.4854: array size does not match usage v8.2.4854
authorChristian Brabandt <cb@256bit.org>
Sun, 1 May 2022 23:06:51 +0000 (00:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 May 2022 23:06:51 +0000 (00:06 +0100)
Problem:    Array size does not match usage.
Solution:   Make array size 3 instead of 4. (Christian Brabandt, closes #10336)

src/term.c
src/version.c

index 769105e4c84e98f1c9df604749f7f6a7e85c0d04..4044d751a0e72fb1078738fa93551023f715d2a1 100644 (file)
@@ -6760,7 +6760,7 @@ static int grey_ramp[] = {
     0x80, 0x8A, 0x94, 0x9E, 0xA8, 0xB2, 0xBC, 0xC6, 0xD0, 0xDA, 0xE4, 0xEE
 };
 
-static char_u ansi_table[16][4] = {
+static char_u ansi_table[16][3] = {
 //   R    G    B
   {  0,   0,   0}, // black
   {224,   0,   0}, // dark red
index de2ca4e36181689f09f6dcf8d66635db31734ce7..94c3470d85c399f96958b64383e69fd28e1495ed 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4854,
 /**/
     4853,
 /**/