diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-29 12:48:59 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-07-29 12:48:59 +0000 |
commit | 37d605a578a7ae107f29c63fc7396e0a94c44ac1 (patch) | |
tree | f0d1d2e14e0d2547b81f0c27bf71bc7f38b15b05 /apps | |
parent | 2d31d77a8ba231cb03ec35863c4c4ce2024f6509 (diff) |
fix touchscreen errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27614 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 52e7e1155c..d81ccf62b3 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -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 == '!') |