mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
IT: add term. NUL to messages
This commit is contained in:
parent
af92db9dc0
commit
57526c6c37
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user