diff options
| author | Andrew Dunai | 2018-03-04 19:45:33 +0200 |
|---|---|---|
| committer | Andrew Dunai | 2018-03-04 19:45:33 +0200 |
| commit | 0269e366f13104ccd4e2e50475460b032006730a (patch) | |
| tree | f4eb9659dc9a6f52569b4dca481f6ac8a09a9f97 /core/io/marshalls.cpp | |
| parent | e619727e999ecd8e6883330f2c6950cd0624de99 (diff) | |
| download | godot-0269e366f13104ccd4e2e50475460b032006730a.tar.gz godot-0269e366f13104ccd4e2e50475460b032006730a.tar.zst godot-0269e366f13104ccd4e2e50475460b032006730a.zip | |
Fix garbage in string padding.
Diffstat (limited to 'core/io/marshalls.cpp')
| -rw-r--r-- | core/io/marshalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/marshalls.cpp b/core/io/marshalls.cpp index 9e2128778..2ebe8d6df 100644 --- a/core/io/marshalls.cpp +++ b/core/io/marshalls.cpp @@ -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; } } } |
