From 8e36056dd8ba222ec18b9ed71d34d8bcd80cc226 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 May 2021 15:49:27 +0530 Subject: [PATCH] oops --- kitty/glyph-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/glyph-cache.c b/kitty/glyph-cache.c index db91e66f9..2e12afa10 100644 --- a/kitty/glyph-cache.c +++ b/kitty/glyph-cache.c @@ -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; }