diff options
-rw-r--r-- | utils/skinupdater/skinupdater.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/skinupdater/skinupdater.c b/utils/skinupdater/skinupdater.c index 01d01886a2..982e36a5b7 100644 --- a/utils/skinupdater/skinupdater.c +++ b/utils/skinupdater/skinupdater.c @@ -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, ','); |