From 415ac7a229aa653458e1bb571afe717fd4779afa Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Thu, 28 Jan 2021 16:33:20 +0000 Subject: [PATCH] fix build --- parse.y | 4 ++-- puny.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parse.y b/parse.y index d642637..e9b091b 100644 --- a/parse.y +++ b/parse.y @@ -88,8 +88,8 @@ vhost : TSERVER TSTRING '{' servopts locations '}' { if (strstr($2, "xn--") != NULL) { warnx("%s:%d \"%s\" looks like punycode: " - "you should use the decoded hostname." - config_path, yylineno); + "you should use the decoded hostname.", + config_path, yylineno, $2); } if (host->cert == NULL || host->key == NULL || diff --git a/puny.c b/puny.c index c00314c..c84f4e0 100644 --- a/puny.c +++ b/puny.c @@ -225,7 +225,7 @@ puny_decode(const char *hostname, char *out, size_t len) s = hostname; for (;;) { - end = end_of_component(s); + end = end_of_label(s); l = end - s; if (l >= sizeof(label)) return 0;