diff --git a/src/MySQL_Encrypt_Sha1.cpp b/src/MySQL_Encrypt_Sha1.cpp index 16160ca..7b4d227 100644 --- a/src/MySQL_Encrypt_Sha1.cpp +++ b/src/MySQL_Encrypt_Sha1.cpp @@ -86,12 +86,14 @@ void Encrypt_SHA1::addUncounted(uint8_t data) { size_t Encrypt_SHA1::write(uint8_t data) { ++byteCount; addUncounted(data); + return 1; } size_t Encrypt_SHA1::write(uint8_t* data, int length) { for (int i=0; i