diff --git a/ChangeLog b/ChangeLog index 2267d56f..3a5b2904 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24014,3 +24014,6 @@ RPM package. 2023-03-17 Fred Gleason * Updated the copyright notices to use an interval of 2002-2023. +2023-03-20 Fred Gleason + * Fixed a bug in 'RDCatchEvent::read()' that caused a segfault + when processing a 'Reload Decks' operation. diff --git a/lib/rdcatchevent.cpp b/lib/rdcatchevent.cpp index 901e8e43..0f2b6ca6 100644 --- a/lib/rdcatchevent.cpp +++ b/lib/rdcatchevent.cpp @@ -2,7 +2,7 @@ // // A container class for a Rivendell Catch Event message. // -// (C) Copyright 2022 Fred Gleason +// (C) Copyright 2022-2023 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -370,15 +370,11 @@ bool RDCatchEvent::read(const QString &str) case RDCatchEvent::ReloadDecksOp: if(f0.size()!=4) { return false; - } - chan=f0.at(4).toInt(&ok); - if(ok&&(chan<255)) { - d_operation=op; - d_host_name=f0.at(1); - d_target_host_name=f0.at(3); - return true; } - break; + d_operation=op; + d_host_name=f0.at(1); + d_target_host_name=f0.at(3); + return true; case RDCatchEvent::NullOp: case RDCatchEvent::LastOp: