Problem: Write NUL past allocated space using corrupted spell file.
(Markus Vervier)
Solution: Init "c" every time.
salitem_T *smp;
int ccnt;
char_u *p;
- int c = NUL;
slang->sl_sofo = FALSE;
// <sal> : <salfromlen> <salfrom> <saltolen> <salto>
for (; gap->ga_len < cnt; ++gap->ga_len)
{
+ int c = NUL;
+
smp = &((salitem_T *)gap->ga_data)[gap->ga_len];
ccnt = getc(fd); // <salfromlen>
if (ccnt < 0)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1169,
/**/
1168,
/**/