summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/controller.cxx b/controller.cxx
index 8354974..aa676af 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -32,6 +32,7 @@ Controller::Controller(QObject* parent) : QObject{parent}
#endif
sign_up(brand.toLatin1().constData(), certFile ? certFile->toLatin1().constData() : nullptr,
[](icclient_response* response) {
+ const_cast<char*>(response->data)[response->numBytes] = '\0';
QString brand{response->data};
icclient_free_response(response);
QString sampleUrl{QString{SECURE_SERVER} % "/" % brand};