summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 1656f64a..f3352f24 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -341,8 +341,11 @@ print_format::components_to_string(vector<format_component> const & components)
for (string::const_iterator j = i->literal_string.begin();
j != i->literal_string.end(); ++j)
{
+ // See also: c_unparser::visit_literal_string and lex_cast_qstring
if (*j == '%')
oss << '%';
+ else if(*j == '"')
+ oss << '\\';
oss << *j;
}
}