Fix a C++11 issue: separate string literals and macros with a space.

This commit is contained in:
Ryan Prichard 2015-10-13 04:32:51 -05:00
parent dd438a9505
commit bde8922e08
2 changed files with 3 additions and 3 deletions

View File

@ -302,7 +302,7 @@ void Terminal::finishOutput(const std::pair<int, int> &newCursorPos)
if (m_cursorHidden) {
moveTerminalToLine(newCursorPos.second);
char buffer[32];
sprintf(buffer, CSI"%dG"CSI"?25h", newCursorPos.first + 1);
sprintf(buffer, CSI"%dG" CSI"?25h", newCursorPos.first + 1);
if (!m_consoleMode)
m_output->write(buffer);
m_cursorHidden = false;
@ -329,7 +329,7 @@ void Terminal::moveTerminalToLine(int line)
if (line < m_remoteLine) {
// CUrsor Up (CUU)
char buffer[32];
sprintf(buffer, "\r"CSI"%dA", m_remoteLine - line);
sprintf(buffer, "\r" CSI"%dA", m_remoteLine - line);
if (!m_consoleMode)
m_output->write(buffer);
m_remoteLine = line;

View File

@ -92,7 +92,7 @@ static bool pathExists(const std::wstring &path)
static std::wstring findAgentProgram()
{
std::wstring progDir = dirname(getModuleFileName(getCurrentModule()));
std::wstring ret = progDir + L"\\"AGENT_EXE;
std::wstring ret = progDir + (L"\\" AGENT_EXE);
assert(pathExists(ret));
return ret;
}