From e84453625111cb75427b03eb982478d16da34d5f Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Fri, 22 Dec 2017 21:39:13 -0800 Subject: [PATCH] Fix the URL max limit in web interface The web interface has a hardcoded 64 char URL limit, even though the actual url[] array was increased to 96 chars. Use sizeof(url) in the handler instead of a hardcoded number to enable use of all space. Addresses issue #21 , again. --- examples/WebRadio/WebRadio.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/WebRadio/WebRadio.ino b/examples/WebRadio/WebRadio.ino index f05ca1b..936dff9 100644 --- a/examples/WebRadio/WebRadio.ino +++ b/examples/WebRadio/WebRadio.ino @@ -146,7 +146,7 @@ void HandleChangeURL(WiFiClient *client, char *params) { char *namePtr; char *valPtr; - char newURL[64]; + char newURL[sizeof(url)]; char newType[4]; newURL[0] = 0;