fix puny-test build

This commit is contained in:
Omar Polo 2021-01-29 18:51:35 +00:00
parent dceca3b69d
commit cef60084e6
1 changed files with 4 additions and 2 deletions

View File

@ -50,12 +50,14 @@ main(int argc, char **argv)
struct suite *i;
int failed;
char buf[64]; /* name len */
char *parse_err;
failed = 0;
for (i = t; i->src != NULL; ++i) {
memset(buf, 0, sizeof(buf));
if (!puny_decode(i->src, buf, sizeof(buf))) {
printf("decode: failure with %s\n", i->src);
if (!puny_decode(i->src, buf, sizeof(buf), &parse_err)) {
printf("decode: failure with %s: %s\n",
i->src, parse_err);
failed = 1;
continue;
}