From 09df11bcc43eb5b745e30cd7393740c60ae12f9a Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 24 Sep 2022 17:13:43 -0300 Subject: [PATCH] framebuffer: support another edge case --- src/video/framebuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/framebuffer.c b/src/video/framebuffer.c index 25d59f27..b953293b 100644 --- a/src/video/framebuffer.c +++ b/src/video/framebuffer.c @@ -20,6 +20,7 @@ static int devchecks(int fb, size_t* count, size_t offset){ if(offset >= end){ *count = 0; + return 0; } if(*count + offset > end)