fix FS#11384, skinupdater barfed on %Xd and %Vi
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26691 a1c6a512-1295-4272-9138-f99709370657
diff --git a/utils/skinupdater/skinupdater.c b/utils/skinupdater/skinupdater.c
index 6577b77..f724232 100644
--- a/utils/skinupdater/skinupdater.c
+++ b/utils/skinupdater/skinupdater.c
@@ -277,6 +277,19 @@
PUTCH(out, '(');
len += 1+dump_arg(out, start+1, 3, true);
}
+ else if (MATCH("Vi"))
+ {
+ int read = 1;
+
+ PUTCH(out, '(');
+ if ((start[1] >= 'a' && start[1] <= 'z') ||
+ (start[1] >= 'A' && start[1] <= 'Z'))
+ {
+ read = 1+dump_arg(out, start+1, 1, false);
+ PUTCH(out, ',');
+ }
+ len += read + dump_viewport_tags(out, start+read);
+ }
else if (MATCH("Vl") || MATCH("Vi"))
{
int read;
@@ -292,7 +305,7 @@
}
else if (MATCH("X"))
{
- if (*start+1 == 'd')
+ if (*start == 'd')
{
fprintf(out, "(d)");
len ++;