1
0
Fork 0
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:
Jonathan Gordon 2010-07-29 12:48:59 +00:00
parent 2d31d77a8b
commit 37d605a578

View file

@ -740,11 +740,9 @@ static int parse_touchregion(struct skin_element *element,
(void)token; (void)token;
unsigned i, imax; unsigned i, imax;
struct touchregion *region = NULL; struct touchregion *region = NULL;
const char *ptr = wps_bufptr; const char *action;
const char *action, *end;
const char pb_string[] = "progressbar"; const char pb_string[] = "progressbar";
const char vol_string[] = "volume"; const char vol_string[] = "volume";
int x,y,w,h;
char temp[20]; char temp[20];
/* format: %T(x,y,width,height,action) /* format: %T(x,y,width,height,action)
@ -784,7 +782,7 @@ static int parse_touchregion(struct skin_element *element,
region->reverse_bar = false; region->reverse_bar = false;
action = element->params[4].data.text; action = element->params[4].data.text;
strlcpy(temp, action, end-action+1); strcpy(temp, action);
action = temp; action = temp;
if (*action == '!') if (*action == '!')