diff --git a/plugins/feature/remotecontrol/remotecontrolgui.cpp b/plugins/feature/remotecontrol/remotecontrolgui.cpp
index 2ee4b0198..2b41ace75 100644
--- a/plugins/feature/remotecontrol/remotecontrolgui.cpp
+++ b/plugins/feature/remotecontrol/remotecontrolgui.cpp
@@ -1005,7 +1005,7 @@ void RemoteControlGUI::updateChart(RemoteControlDeviceGUI *deviceGUI, const QStr
QString format = sensor->m_format.trimmed();
if (format.contains("%s"))
{
- formattedValue = QString::asprintf(format.toUtf8(), value.toString().toUtf8());
+ formattedValue = QString::asprintf(format.toUtf8(), value.toString().toUtf8().data());
}
else if (format.contains("%d") || format.contains("%u") || format.contains("%x") || format.contains("%X"))
{
diff --git a/plugins/feature/remotecontrol/remotecontrolworker.h b/plugins/feature/remotecontrol/remotecontrolworker.h
index 34fabc98b..b3eb3112c 100644
--- a/plugins/feature/remotecontrol/remotecontrolworker.h
+++ b/plugins/feature/remotecontrol/remotecontrolworker.h
@@ -16,7 +16,7 @@
// along with this program. If not, see . //
///////////////////////////////////////////////////////////////////////////////////
-#ifndef INCLUDE_FEATURE_PERTESTERWORKER_H_
+#ifndef INCLUDE_FEATURE_REMOTECONTROLWORKER_H_
#define INCLUDE_FEATURE_REMOTECONTROLWORKER_H_
#include