pack.c: `count` should not be negative for directives `xX@`.

parent bf2b06ce
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment