Fix garbage in string padding.

(cherry picked from commit 0269e366f1)
This commit is contained in:
Andrew Dunai 2018-03-04 19:45:33 +02:00 committed by Hein-Pieter van Braam
parent 12336dc253
commit 683511310e
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ static void _encode_string(const String &p_string, uint8_t *&buf, int &r_len) {
while (r_len % 4) { while (r_len % 4) {
r_len++; //pad r_len++; //pad
if (buf) { if (buf) {
buf++; *(buf++) = 0;
} }
} }
} }