2019-10-28 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdimport(1) that caused a segfault when
	invoked with the '--metadata-pattern' and '--log-syslog' switches.
This commit is contained in:
Fred Gleason 2019-10-28 16:28:57 -04:00
parent 8a2dd87545
commit a6983df520
2 changed files with 4 additions and 1 deletions

View File

@ -19233,3 +19233,6 @@
* Fixed a regression in 'rdxport.cgi' that caused a check of the
Rivendell services to be triggered each time a WebAPI function was
invoked.
2019-10-28 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdimport(1) that caused a segfault when
invoked with the '--metadata-pattern' and '--log-syslog' switches.

View File

@ -2011,7 +2011,7 @@ void MainObject::Log(int prio,const QString &msg) const
FILE *f=NULL;
if(import_log_syslog) {
rda->syslog(prio,msg.trimmed());
rda->syslog(prio,"%s",(const char *)msg.trimmed().toUtf8());
}
if(!import_log_filename.isEmpty()) {
QDateTime now=QDateTime::currentDateTime();