diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/stl_binary_writer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc index 74e26ea..4453332 100644 --- a/src/stl_binary_writer.cc +++ b/src/stl_binary_writer.cc @@ -111,6 +111,7 @@ sub::write_stl_binary ( assert (editor_contact_details.size() <= 32); char* buffer = new char[1024]; + memset (buffer, 0, 1024); ofstream output (file_name.string().c_str ()); STLBinaryTables tables; @@ -201,6 +202,8 @@ sub::write_stl_binary ( int N = 0; for (list<Subtitle>::const_iterator i = subtitles.begin(); i != subtitles.end(); ++i) { + memset (buffer, 0, 1024); + /* Subtitle group number */ put_int_as_int (buffer + 0, 1, 1); /* Subtitle number */ |
