From 426815f7ab97a8b336d77a4b73e7ffd57667c840 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 Oct 2021 10:32:25 +0530 Subject: [PATCH] Silence CodeQL warning --- kitty/shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/shaders.c b/kitty/shaders.c index fab383956..f2288ef08 100644 --- a/kitty/shaders.c +++ b/kitty/shaders.c @@ -497,7 +497,7 @@ render_window_title(OSWindow *os_window, Screen *screen UNUSED, GLfloat xstart, unsigned bar_width = (unsigned)ceilf(right - left); if (!window->title_bar_data.buf || window->title_bar_data.width != bar_width || window->title_bar_data.height != bar_height) { free(window->title_bar_data.buf); - window->title_bar_data.buf = malloc(4 * bar_width * bar_height); + window->title_bar_data.buf = malloc((size_t)4 * bar_width * bar_height); window->title_bar_data.last_drawn_title_object_id = NULL; if (!window->title_bar_data.buf) return 0; window->title_bar_data.height = bar_height;