Eeschema: fix new schematic file format image parser buffer size.
Fixes https://gitlab.com/kicad/code/kicad/issues/4387
This commit is contained in:
parent
632494cba7
commit
8c2aee1261
|
@ -2172,7 +2172,7 @@ SCH_BITMAP* SCH_SEXPR_PARSER::parseImage()
|
||||||
|
|
||||||
// Reserve 128K because most image files are going to be larger than the default
|
// Reserve 128K because most image files are going to be larger than the default
|
||||||
// 1K that wxString reserves.
|
// 1K that wxString reserves.
|
||||||
data.reserve( 2^17 );
|
data.reserve( 1 << 17 );
|
||||||
|
|
||||||
while( token != T_RIGHT )
|
while( token != T_RIGHT )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue