From 3e37fbefac2617ddf07ef1dbddac876bf6236941 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Wed, 8 Aug 2018 18:34:02 -0400 Subject: [PATCH] 2018-08-08 Fred Gleason * Fixed a regression in 'RDAudioInfo' that caused segfaults. --- ChangeLog | 2 ++ lib/rdaudioinfo.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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(); }