From b729c4a126517201cca95f1640e0ce6fdfc69071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 6 Aug 2021 07:57:03 +0200 Subject: [PATCH] ctu: fixes for xml output --- lib/ctu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ctu.cpp b/lib/ctu.cpp index ad3a02c79..de856d348 100644 --- a/lib/ctu.cpp +++ b/lib/ctu.cpp @@ -79,9 +79,9 @@ std::string CTU::FileInfo::CallBase::toBaseXmlString() const { std::ostringstream out; out << " " << ATTR_CALL_ID << "=\"" << callId << "\"" - << " " << ATTR_CALL_FUNCNAME << "=\"" << callFunctionName << "\"" + << " " << ATTR_CALL_FUNCNAME << "=\"" << ErrorLogger::toxml(callFunctionName) << "\"" << " " << ATTR_CALL_ARGNR << "=\"" << callArgNr << "\"" - << " " << ATTR_LOC_FILENAME << "=\"" << location.fileName << "\"" + << " " << ATTR_LOC_FILENAME << "=\"" << ErrorLogger::toxml(location.fileName) << "\"" << " " << ATTR_LOC_LINENR << "=\"" << location.lineNumber << "\"" << " " << ATTR_LOC_COLUMN << "=\"" << location.column << "\""; return out.str();