summaryrefslogtreecommitdiffstats
path: root/lib/skin_parser/skin_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r--lib/skin_parser/skin_parser.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c
index dbb5cbe93e..2d439710d9 100644
--- a/lib/skin_parser/skin_parser.c
+++ b/lib/skin_parser/skin_parser.c
@@ -459,7 +459,9 @@ static int skin_parse_tag(struct skin_element* element, char** document)
/* Eating a newline if necessary */
if(tag_args[0] == '\n')
{
- if(*cursor == '\n')
+ while (*cursor && *cursor != '\n')
+ cursor++;
+ if (*cursor)
cursor++;
*document = cursor;
return 1;
@@ -621,9 +623,13 @@ static int skin_parse_tag(struct skin_element* element, char** document)
}
if(*tag_args == '\n')
- if(*cursor == '\n')
+ {
+ while (*cursor && *cursor != '\n')
cursor++;
-
+ if (*cursor)
+ cursor++;
+ }
+
*document = cursor;
return 1;