Merge pull request #17257 from and3rson/master

Fix garbage in string padding.
This commit is contained in:
Rémi Verschelde 2018-03-13 12:30:42 +01:00 committed by GitHub
commit ced5b57a60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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