diff --git a/src/assistant/assistant/remotecontrol.cpp b/src/assistant/assistant/remotecontrol.cpp
index 8aa1e680a7de22b665da1e51e40c6d901c5c82a9..f5828f0844bf24bfd5a594954a82aa8c62409b26 100644
--- a/src/assistant/assistant/remotecontrol.cpp
+++ b/src/assistant/assistant/remotecontrol.cpp
@@ -143,11 +143,11 @@ void RemoteControl::receivedData()
     TRACE_OBJ
     QByteArray ba;
     while (true) {
-        char c = getc(stdin);
+        const int c = getc(stdin);
         if (c == EOF || c == '\0')
             break;
         if (c)
-            ba.append(c);
+            ba.append(char(c));
          if (c == '\n')
              break;
     }