From d1a4903afb949a2a9fc7197ceedb29a3312d6965 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 21 Nov 2024 19:50:57 -0500 Subject: [PATCH] [BugFix] lib/printcell_helper.c vp buffer ovfl vp->width may exceed the actual available screen area which prevents the sim from clipping properly ' Change-Id: I487761b3e656d4a066960fb8dc7477cceb30aa57 --- apps/plugins/lib/printcell_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/plugins/lib/printcell_helper.c b/apps/plugins/lib/printcell_helper.c index 48b8b2c9d2..43cbabef06 100644 --- a/apps/plugins/lib/printcell_helper.c +++ b/apps/plugins/lib/printcell_helper.c @@ -201,6 +201,9 @@ static inline int printcells(struct screen *display, char* buffer, buftext = &buffer[sidx[i]]; display->put_line(x + offw + offx, ny, linedes, "$t", buftext); vp->width += COLUMN_ENDLEN + 1; + if (vp->width > vp_w) + vp->width = vp_w; + draw_selector(display, linedes, selected_flag, i, separator, x, ny, nw, height); } x = nx;