From c7fd4cd2fcf15df3848cc6fa610655b4759104d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Panzenb=C3=B6ck?= Date: Fri, 24 Jun 2011 01:53:20 +0200 Subject: [PATCH] IT: the max. 8000 bytes msg. length have to include the NUL --- taglib/it/itfile.cpp | 4 ++-- 1 file 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;