diff options
Diffstat (limited to 'sql/my_json_writer.cc')
-rw-r--r-- | sql/my_json_writer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/my_json_writer.cc b/sql/my_json_writer.cc index 24b9adb9f4f..ce25b2968e2 100644 --- a/sql/my_json_writer.cc +++ b/sql/my_json_writer.cc @@ -215,7 +215,7 @@ void Json_writer::add_str(const char *str, size_t length) void Json_writer::add_str(const String &str) { - add_str(str.ptr()); + add_str(str.ptr(), str.length()); } |