diff --git a/examples/base64/base64.ino b/examples/base64/base64.ino index 31c8e21..86868d8 100644 --- a/examples/base64/base64.ino +++ b/examples/base64/base64.ino @@ -27,7 +27,7 @@ void setup() // encoding char input[] = "Hello world"; - int inputLen = sizeof(input); + int inputLen = sizeof(input)-1; int encodedLen = base64_enc_len(inputLen); char encoded[encodedLen];