From e89d835de61b97f9102e4e3ea3780b8403e863c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 May 2026 11:54:21 +0530 Subject: [PATCH] Make CodeQL happy --- kitty/dnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/dnd.c b/kitty/dnd.c index c364ae9dd..5fa726d40 100644 --- a/kitty/dnd.c +++ b/kitty/dnd.c @@ -1445,7 +1445,7 @@ drag_start(Window *w) { uint8_t *txt = realloc(img.data, img.sz + 1); if (!txt) { abrt(ENOMEM); return; } img.data = txt; txt[img.sz] = '\0'; - const size_t max_width = screen->cell_size.width * screen->columns; + const size_t max_width = (size_t)screen->cell_size.width * screen->columns; uint8_t *render_buf = malloc(max_width * render_height * 4); if (!render_buf) { abrt(ENOMEM); return; } size_t actual_width = max_width;