Mercurial > vim
view runtime/vim16x16.xpm @ 17655:8f82b1ec99b7 v8.1.1825
patch 8.1.1825: allocating more memory than needed for extended structs
commit https://github.com/vim/vim/commit/b59e7357722d977830948572a395f0a175c7ded8
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 7 21:42:24 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Aug 2019 21:45:06 +0200 |
parents | 3fc0f57ecb91 |
children | 8f04cf65ecff |
line wrap: on
line source
/* XPM */ static char * vim16x16[] = { "16 16 8 1", " c None", ". c #000000", "+ c #000080", "@ c #008000", "# c #00FF00", "$ c #808080", "% c #C0C0C0", "& c #FFFFFF", " .....#. .... ", " .&&&&&.@.&&&&. ", " .%%%%%$..%%%%$.", " .%%%$.@.&%%$. ", " .%%%$..&%%$. ", " .%%%$.&%%$.. ", " #.%%%$&%%$.@@. ", "#@.%%%&%%$.@@@@.", ".@.%%%%%..@@@@+ ", " ..%%%%.%...@. ", " .%%%%...%%.%. ", " .%%%.%%.%%%%%.", " .%%$..%.%.%.%.", " .%$.@.%.%.%.%.", " .. .%%.%.%.%.", " .. . . . "};