diff --git a/ChangeLog b/ChangeLog index dc64a8a8..add056fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 + * Fixed a regression in rdimport(1) that caused a segfault when + invoked with the '--metadata-pattern' and '--log-syslog' switches. diff --git a/utils/rdimport/rdimport.cpp b/utils/rdimport/rdimport.cpp index 18d9ab4e..1aad96d8 100644 --- a/utils/rdimport/rdimport.cpp +++ b/utils/rdimport/rdimport.cpp @@ -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();