diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-11-29 00:21:25 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2024-11-29 00:23:51 -0500 |
commit | c2bc7aa51698dfb793c8d3544fa6ecd7d257dcb4 (patch) | |
tree | 845499cd866b3d5e23ce0f6b34a3c30df17bfd1f | |
parent | b1e70db6e77124651780ef03716723ed31d82e5c (diff) | |
download | rockbox-c2bc7aa516.tar.gz rockbox-c2bc7aa516.zip |
[BugFix] lib/printcell_helper.c vp buffer ovfl #2
found another place where vp width could exceed the buffer
Change-Id: I85d806cc58955b44327bd47c6a08dc7e556722c0
-rw-r--r-- | apps/plugins/lib/printcell_helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/lib/printcell_helper.c b/apps/plugins/lib/printcell_helper.c index 43cbabef06..51f806fd45 100644 --- a/apps/plugins/lib/printcell_helper.c +++ b/apps/plugins/lib/printcell_helper.c @@ -406,6 +406,8 @@ static void printcell_listdraw_fn(struct list_putlineinfo_t *list_info) if (colxw > 0) /* draw selector for first column (title or items) */ { vp->width += COLUMN_ENDLEN + 1; + if (vp->width > vp_w) + vp->width = vp_w; draw_selector(display, linedes, selected_flag, 0, separator, nx, y, nw, linedes->height); } |