diff --git a/agent/Terminal.cc b/agent/Terminal.cc index be6d2758..9bf2cc8a 100644 --- a/agent/Terminal.cc +++ b/agent/Terminal.cc @@ -302,7 +302,7 @@ void Terminal::finishOutput(const std::pair &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; diff --git a/libwinpty/winpty.cc b/libwinpty/winpty.cc index 400dd312..2f7ab5fd 100644 --- a/libwinpty/winpty.cc +++ b/libwinpty/winpty.cc @@ -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; }