diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-03-13 12:30:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 12:30:42 +0100 |
commit | ced5b57a60c75824dfaea751b7c055f7047083a2 (patch) | |
tree | 246e5624ca42e15471ab8d781b3a0d0d056f96c2 /core | |
parent | 18d543d7ab2a362e39cf45d7d4c44c188b60dac9 (diff) | |
parent | 0269e366f13104ccd4e2e50475460b032006730a (diff) |
Merge pull request #17257 from and3rson/master
Fix garbage in string padding.
Diffstat (limited to 'core')
-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 9e21287780..2ebe8d6df7 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; } } } |