This commit is contained in:
Kovid Goyal 2021-05-06 15:49:27 +05:30
parent 4a34f596a8
commit 8e36056dd8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,7 +35,7 @@ find_or_create_sprite_position(SpritePosition **head_, glyph_index *glyphs, glyp
SpritePosItem **head = (SpritePosItem**)head_, *p;
const unsigned key_sz = key_size_for_glyph_count(count);
if (key_sz > scratch_sz) {
scratch = realloc(scratch, key_sz + 16);
scratch = realloc(scratch, sizeof(glyph_index) * (key_sz + 16));
if (!scratch) return NULL;
scratch_sz = key_sz + 16;
}