diff options
author | Mathias Panzenböck <grosser.meister.morti@gmx.net> | 2011-06-24 01:53:20 +0200 |
---|---|---|
committer | Mathias Panzenböck <grosser.meister.morti@gmx.net> | 2011-06-24 01:53:20 +0200 |
commit | c7fd4cd2fcf15df3848cc6fa610655b4759104d3 (patch) | |
tree | 167ab91d6457666011e3ce7eb919d997b2ea4b56 | |
parent | 57526c6c377d84bf7dd0cbe97caf613d8ef7bef1 (diff) |
IT: the max. 8000 bytes msg. length have to include the NUL
-rw-r--r-- | taglib/it/itfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/taglib/it/itfile.cpp b/taglib/it/itfile.cpp index 183a4f00..3b2ca876 100644 --- a/taglib/it/itfile.cpp +++ b/taglib/it/itfile.cpp @@ -134,9 +134,9 @@ bool IT::File::save() // it's actually not really stated if the message needs a // terminating NUL but it does not hurt to add one: + if(message.size() > 7999) + message.resize(7999); message.append((char)0); - if(message.size() > 8000) - message.resize(8000); ushort special = 0; ushort messageLength = 0; |