diff options
-rw-r--r-- | test/dump.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/dump.h b/test/dump.h index 7c8c76d..6bff4aa 100644 --- a/test/dump.h +++ b/test/dump.h @@ -1109,7 +1109,7 @@ void dump_bytecode(css_style *style, char **ptr) *((parserutils_hash_entry **) bytecode); ADVANCE(sizeof(he)); - *ptr += sprintf(*ptr, " %.*s ", + *ptr += sprintf(*ptr, "%.*s ", (int) he->len, (char *) he->data); fixed val = @@ -1119,6 +1119,11 @@ void dump_bytecode(css_style *style, char **ptr) value = *((uint32_t *) bytecode); ADVANCE(sizeof(value)); + + if (value != + COUNTER_INCREMENT_NONE) + *ptr += sprintf(*ptr, + " "); } break; case COUNTER_INCREMENT_NONE: |