From 132ffa9ec2c4bd7b2996a25683c1944fe288d058 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Mon, 14 Nov 2016 20:51:43 +0000 Subject: [PATCH] refs #802 Fixed Clang warning (read beyond the end of a string literal). --- src/plugins/simulator/fscommon/fsuipc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/simulator/fscommon/fsuipc.cpp b/src/plugins/simulator/fscommon/fsuipc.cpp index 5138c1597..a3812b33c 100644 --- a/src/plugins/simulator/fscommon/fsuipc.cpp +++ b/src/plugins/simulator/fscommon/fsuipc.cpp @@ -65,7 +65,7 @@ namespace BlackSimPlugin .arg(QLatin1Char(48 + (0x0f & (FSUIPC_Version >> 24)))) .arg(QLatin1Char(48 + (0x0f & (FSUIPC_Version >> 20)))) .arg(QLatin1Char(48 + (0x0f & (FSUIPC_Version >> 16)))) - .arg((FSUIPC_Version & 0xffff) ? "a" + (FSUIPC_Version & 0xff) - 1 : ""); + .arg((FSUIPC_Version & 0xffff) ? QString(QLatin1Char('a' + (FSUIPC_Version & 0xff) - 1)) : ""); this->m_fsuipcVersion = QString("FSUIPC %1 (%2)").arg(ver).arg(sim); // CLogMessage(this).info("FSUIPC connected: %1") << this->m_fsuipcVersion; }