diff --git a/ChangeLog b/ChangeLog index 5245dd7a..5420aa8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17339,3 +17339,5 @@ 2018-08-08 Fred Gleason * Fixed a regression in the 'Edit Cart' dialog in rdlibrary(1) that caused button legends to be misaligned. +2018-08-08 Fred Gleason + * Fixed a regression in 'RDAudioInfo' that caused segfaults. diff --git a/lib/rdaudioinfo.cpp b/lib/rdaudioinfo.cpp index 650c0186..d983dee5 100644 --- a/lib/rdaudioinfo.cpp +++ b/lib/rdaudioinfo.cpp @@ -255,7 +255,7 @@ int RDAudioInfo::ParseInt(const QString &tag,const QString &xml) if(list[i].contains(tag)) { QStringList list2=list[i].split("<"); if(list2.size()>=2) { - list2=list2[i].split(">"); + list2=list2[1].split(">"); if(list2.size()>=2) { return list2[1].toInt(); }