fix %Xl tag... this shuold be useable now

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26347 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-05-28 03:06:51 +00:00
parent 20dcf0b523
commit 9262a83e4f

View file

@ -85,10 +85,10 @@ int parse_tag(FILE* out, const char* start, bool in_conditional)
}
else if (MATCH("xl"))
{
/* THIS IS BLOODY WRONG! */
PUTCH(out, '(');
len += 1+dump_arg(out, start+1, 4, false);
start += len+1;
int read = 1+dump_arg(out, start+1, 4, false);
len += read;
start += read;
if (*start>= '0' && *start <= '9')
{
PUTCH(out, ',');