Warning fix

This commit is contained in:
Luca Deri 2020-12-03 12:10:30 +01:00
parent e7dd7ce8a9
commit 75e4b89beb

View file

@ -644,7 +644,7 @@ static void redirect_to_login(struct mg_connection *conn,
"Content-Type: text/html; charset=UTF-8\r\n"
"Content-Length: %u\r\n"
"Location: http://%s:%u%s%s%s%s\r\n\r\n%s",
strlen(wispr_data),
(unsigned int)strlen(wispr_data),
ntop->get_HTTPserver()->getCaptiveRedirectAddress(), // LAN address
CAPTIVE_PORTAL_PORT,
ntop->getPrefs()->get_http_prefix(), ntop->getPrefs()->getCaptivePortalUrl(),