pack.c: `count` should not be negative for directives `xX@`.
@@ -1251,6 +1251,9 @@ alias:
tmpl->idx = e - tptr;
continue;
} else if (ch == '*') {
+ if (type == PACK_TYPE_NONE)
+ count = 0;
+ else
count = -1;
} else if (ch == '_' || ch == '!' || ch == '<' || ch == '>') {
if (strchr("sSiIlLqQ", (int)t) == NULL) {
