summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/skin_engine/skin_parser.c6
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,
740 (void)token; 740 (void)token;
741 unsigned i, imax; 741 unsigned i, imax;
742 struct touchregion *region = NULL; 742 struct touchregion *region = NULL;
743 const char *ptr = wps_bufptr; 743 const char *action;
744 const char *action, *end;
745 const char pb_string[] = "progressbar"; 744 const char pb_string[] = "progressbar";
746 const char vol_string[] = "volume"; 745 const char vol_string[] = "volume";
747 int x,y,w,h;
748 char temp[20]; 746 char temp[20];
749 747
750 /* format: %T(x,y,width,height,action) 748 /* format: %T(x,y,width,height,action)
@@ -784,7 +782,7 @@ static int parse_touchregion(struct skin_element *element,
784 region->reverse_bar = false; 782 region->reverse_bar = false;
785 action = element->params[4].data.text; 783 action = element->params[4].data.text;
786 784
787 strlcpy(temp, action, end-action+1); 785 strcpy(temp, action);
788 action = temp; 786 action = temp;
789 787
790 if (*action == '!') 788 if (*action == '!')