diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-01 09:58:39 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-01 09:58:39 +0200 |
commit | 4078b3bbc12af0b7fdba18be68b569ece5abd35b (patch) | |
tree | 09314cb48cb7747a7a4e131fc51c7a6718147ab5 /res | |
parent | 4b4884dd7cdbce7194fec24e782dd09d3c430a8f (diff) |
Embed: Ensure data blocks are null-terminated
Diffstat (limited to 'res')
-rw-r--r-- | res/Embed.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/Embed.cmake b/res/Embed.cmake index 3b65b36c..d9f84ed5 100644 --- a/res/Embed.cmake +++ b/res/Embed.cmake | |||
@@ -158,6 +158,7 @@ iBool load_Embed(const char *path) { | |||
158 | return iFalse; | 158 | return iFalse; |
159 | } | 159 | } |
160 | init_Block(data, chunk->size); | 160 | init_Block(data, chunk->size); |
161 | fill_Block(data, 0); | ||
161 | seek_File(f, chunk->pos); | 162 | seek_File(f, chunk->pos); |
162 | readData_File(f, chunk->size, data_Block(data)); | 163 | readData_File(f, chunk->size, data_Block(data)); |
163 | } | 164 | } |