mirror of
https://github.com/godotengine/godot
synced 2024-09-05 14:30:30 +00:00
Fix garbage in string padding.
This commit is contained in:
parent
e619727e99
commit
0269e366f1
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue