Commit 224373c1 authored by schreibfaul1's avatar schreibfaul1

statical-code-check with Platform-IO (Issue #593)

parent 3f640315
......@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.6a
* Updated on: Aug 28.2023
* Version 3.0.6b
* Updated on: Sep 25.2023
* Author: Wolle (schreibfaul1)
*
*/
......
......@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.6
* Updated on: Aug 05.2023
* Version 3.0.6b
* Updated on: Sept 25.2023
* Author: Wolle (schreibfaul1)
*/
......@@ -374,7 +374,7 @@ private:
}
int specialIndexOf (uint8_t* base, const char* str, int baselen, bool exact = false){
int result; // seek for str in buffer or in header up to baselen, not nullterninated
int result = 0; // seek for str in buffer or in header up to baselen, not nullterninated
if (strlen(str) > baselen) return -1; // if exact == true seekstr in buffer must have "\0" at the end
for (int i = 0; i < baselen - strlen(str); i++){
result = i;
......@@ -407,7 +407,7 @@ private:
base64_encodestate _state;
base64_init_encodestate(&_state);
int len = base64_encode_block(&source[0], sourceLength, &buffer[0], &_state);
len = base64_encode_blockend((buffer + len), &_state);
base64_encode_blockend((buffer + len), &_state);
memcpy(dest, buffer, strlen(buffer));
dest[strlen(buffer)] = '\0';
free(buffer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment