forked from len0rd/rockbox
[BugFix] lib/printcell_helper.c vp buffer ovfl #2
found another place where vp width could exceed the buffer Change-Id: I85d806cc58955b44327bd47c6a08dc7e556722c0
This commit is contained in:
parent
b1e70db6e7
commit
c2bc7aa516
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue