summaryrefslogtreecommitdiff
path: root/source/slang/slang-source-loc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-source-loc.cpp')
-rw-r--r--source/slang/slang-source-loc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-source-loc.cpp b/source/slang/slang-source-loc.cpp
index 3f9f8ad31..4b589fbf3 100644
--- a/source/slang/slang-source-loc.cpp
+++ b/source/slang/slang-source-loc.cpp
@@ -66,9 +66,9 @@ void PathInfo::appendDisplayName(StringBuilder& out) const
case Type::FromString:
case Type::FoundPath:
{
- // TODO(JS): We might want to escape the path here if necessary
+
out.appendChar('"');
- out << foundPath;
+ StringUtil::appendEscaped(foundPath.getUnownedSlice(), out);
out.appendChar('"');
break;
}