mirror of
https://github.com/godotengine/godot.git
synced 2025-03-19 23:53:32 +08:00
Fix garbage in string padding.
(cherry picked from commit 0269e366f13104ccd4e2e50475460b032006730a)
This commit is contained in:
parent
12336dc253
commit
683511310e
@ -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…
x
Reference in New Issue
Block a user