0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1825: allocating more memory than needed for extended structs

Problem:    Allocating more memory than needed for extended structs.
Solution:   Use offsetof() instead of sizeof(). (Dominique Pelle,
            closes #4785)
This commit is contained in:
Bram Moolenaar
2019-08-07 21:42:24 +02:00
parent 5bcc5a1ff9
commit b59e735772
2 changed files with 4 additions and 2 deletions

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1825,
/**/
1824,
/**/