diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc index 0dc44d7f..fa523dc1 100644 --- a/libqpdf/JSON.cc +++ b/libqpdf/JSON.cc @@ -141,7 +141,7 @@ JSON::JSON_string::JSON_string(std::string const& utf8) : void JSON::JSON_string::write(Pipeline* p, size_t) const { - *p << "\"" << encoded << "\""; + *p << std::string("\"") + encoded + "\""; } JSON::JSON_number::JSON_number(long long value) :