2021-04-26 Fred Gleason <fredg@paravelsystems.com>

* Fixed security warnings when build under Debian.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-04-26 08:37:36 -04:00
parent 5d32b1b6df
commit a217f43d09
5 changed files with 6 additions and 4 deletions

View File

@ -21595,3 +21595,5 @@
* Escaped all SQL identifiers in 'web/webget/'.
* Replaced " with ' delimiters in all SQL literal strings in
'web/webget/'.
2021-04-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed security warnings when build under Debian.

View File

@ -60,7 +60,7 @@ void PrintError(const QString &str,bool interactive)
QMessageBox::warning(NULL,QObject::tr("RDAdmin Error"),str);
}
else {
fprintf(stderr,(QString("rdadmin: ")+str).toUtf8().constData());
fprintf(stderr,"rdadmin: %s\n",str.toUtf8().constData());
}
}

View File

@ -79,7 +79,7 @@ MainObject::MainObject(QObject *parent)
//
QString err (tr("datedecode_test: "));
if(!RDOpenDb(&schema,&err,config)) {
fprintf(stderr,err.toUtf8());
fprintf(stderr,"%s\n",err.toUtf8().constData());
delete cmd;
exit(256);
}

View File

@ -84,7 +84,7 @@ MainObject::MainObject(QObject *parent)
//
QString err (tr("upload_test: "));
if(!RDOpenDb(&schema,&err,test_config)) {
fprintf(stderr,err.toUtf8());
fprintf(stderr,"%s\n",err.toUtf8().constData());
delete cmd;
exit(256);
}

View File

@ -87,7 +87,7 @@ MainObject::MainObject(QObject *parent)
//
QString err (tr("upload_test: "));
if(!RDOpenDb(&schema,&err,config)) {
fprintf(stderr,err.toUtf8());
fprintf(stderr,"%s\n",err.toUtf8().constData());
delete cmd;
exit(256);
}