summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-07-01 10:17:41 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-07-01 10:17:41 +0000
commitaa1a126772609033ee6f16c11bafcf2f3890fa41 (patch)
tree7adaba19efda04049c79eedee679d68e49692722 /lib
parent7dfd0c065139b145590c4317ed74f2ce34deb596 (diff)
downloadrockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.tar.gz
rockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.tar.bz2
rockbox-aa1a126772609033ee6f16c11bafcf2f3890fa41.zip
minor tweak to r27210 to make it the same as the svn parser... eat everything up to and including the \n after these tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27211 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib')
-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;