mirror of
https://github.com/taglib/taglib.git
synced 2025-07-19 05:24:25 -04:00
Finally took Tommi's suggestion here and introduced a version of the ByteVectorList::split()
that takes a maximum number of values. This should probably be used more widely in places where the max is known ahead of time for this to be a more useful fix than nailing just this special case. Anyway, fixes the bug. BUG:103622 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@438030 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -120,7 +120,7 @@ void CommentsFrame::parseFields(const ByteVector &data)
|
||||
|
||||
int byteAlign = d->textEncoding == String::Latin1 || d->textEncoding == String::UTF8 ? 1 : 2;
|
||||
|
||||
ByteVectorList l = ByteVectorList::split(data.mid(4), textDelimiter(d->textEncoding), byteAlign);
|
||||
ByteVectorList l = ByteVectorList::split(data.mid(4), textDelimiter(d->textEncoding), byteAlign, 2);
|
||||
|
||||
if(l.size() == 2) {
|
||||
d->description = String(l.front(), d->textEncoding);
|
||||
|
Reference in New Issue
Block a user