Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Molkentin <danimo@owncloud.com>2014-01-20 20:22:29 +0400
committerDaniel Molkentin <danimo@owncloud.com>2014-01-20 20:22:29 +0400
commit562513d5a53a750938918423edb272f2d81d3158 (patch)
tree8cfc12d3e3a613179719c2f853228230d2f777b7 /src
parenta2e935329615f3abd4f59016e03345e94a961294 (diff)
Propagator: Don't pass arbitrary strings as formating string
Not a security issue since this code was never in any release.
Diffstat (limited to 'src')
-rw-r--r--src/mirall/owncloudpropagator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp
index 10b2dbc24..62a089034 100644
--- a/src/mirall/owncloudpropagator.cpp
+++ b/src/mirall/owncloudpropagator.cpp
@@ -514,7 +514,7 @@ int PropagateDownloadFile::content_reader(void *userdata, const char *buf, size_
size_t written = 0;
if (that->_propagator->_abortRequested->fetchAndAddRelaxed(0)) {
- ne_set_error(that->_propagator->_session, tr("Sync was aborted by user.").toUtf8());
+ ne_set_error(that->_propagator->_session, "%s", tr("Sync was aborted by user.").toUtf8().data());
return NE_ERROR;
}
@@ -569,7 +569,7 @@ void PropagateDownloadFile::install_content_reader( ne_request *req, void *userd
if (etag.isEmpty()) {
qDebug() << Q_FUNC_INFO << "No E-Tag reply by server, considering it invalid" << ne_get_response_header(req, "etag");
that->errorString = tr("No E-Tag received from server, check Proxy/Gateway");
- ne_set_error(that->_propagator->_session, that->errorString.toUtf8());
+ ne_set_error(that->_propagator->_session, "%s", that->errorString.toUtf8().data());
ne_add_response_body_reader( req, do_not_accept,
do_not_download_content_reader,
(void*) that );
@@ -579,7 +579,7 @@ void PropagateDownloadFile::install_content_reader( ne_request *req, void *userd
<< QString::fromLatin1(that->_expectedEtagForResume.data()) << "vs"
<< QString::fromLatin1(etag.data());
that->errorString = tr("We received a different E-Tag for resuming. Retrying next time.");
- ne_set_error(that->_propagator->_session, that->errorString.toUtf8());
+ ne_set_error(that->_propagator->_session, "%s", that->errorString.toUtf8().data());
ne_add_response_body_reader( req, do_not_accept,
do_not_download_content_reader,
(void*) that );