forked from len0rd/rockbox
fix touchscreen errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27614 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2d31d77a8b
commit
37d605a578
1 changed files with 2 additions and 4 deletions
|
|
@ -740,11 +740,9 @@ static int parse_touchregion(struct skin_element *element,
|
|||
(void)token;
|
||||
unsigned i, imax;
|
||||
struct touchregion *region = NULL;
|
||||
const char *ptr = wps_bufptr;
|
||||
const char *action, *end;
|
||||
const char *action;
|
||||
const char pb_string[] = "progressbar";
|
||||
const char vol_string[] = "volume";
|
||||
int x,y,w,h;
|
||||
char temp[20];
|
||||
|
||||
/* format: %T(x,y,width,height,action)
|
||||
|
|
@ -784,7 +782,7 @@ static int parse_touchregion(struct skin_element *element,
|
|||
region->reverse_bar = false;
|
||||
action = element->params[4].data.text;
|
||||
|
||||
strlcpy(temp, action, end-action+1);
|
||||
strcpy(temp, action);
|
||||
action = temp;
|
||||
|
||||
if (*action == '!')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue