diff options
author | Mathias Panzenböck <grosser.meister.morti@gmx.net> | 2011-06-24 01:50:43 +0200 |
---|---|---|
committer | Mathias Panzenböck <grosser.meister.morti@gmx.net> | 2011-06-24 01:50:43 +0200 |
commit | 57526c6c377d84bf7dd0cbe97caf613d8ef7bef1 (patch) | |
tree | 349fc5a15eeec626103807efa67efe8ce48dfae3 | |
parent | af92db9dc0d9168c5055e2867f792bcfcda7141b (diff) |
IT: add term. NUL to messages
-rw-r--r-- | taglib/it/itfile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/taglib/it/itfile.cpp b/taglib/it/itfile.cpp index ed175c85..183a4f00 100644 --- a/taglib/it/itfile.cpp +++ b/taglib/it/itfile.cpp @@ -131,6 +131,10 @@ bool IT::File::save() for(uint i = instrumentCount + sampleCount; i < lines.size(); ++ i) messageLines.append(lines[i]); ByteVector message = messageLines.toString("\r").data(String::Latin1); + + // it's actually not really stated if the message needs a + // terminating NUL but it does not hurt to add one: + message.append((char)0); if(message.size() > 8000) message.resize(8000); |