File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -516,10 +516,9 @@ static const char *plugin_log_handle(struct plugin *plugin,
516516
517517 /* Only bother unescaping and splitting if it has \ */
518518 if (memchr (plugin -> buffer + msgtok -> start , '\\' , msgtok -> end - msgtok -> start )) {
519- const char * log_escaped = plugin -> buffer + msgtok -> start ;
520- const size_t log_escaped_len = msgtok -> end - msgtok -> start ;
521- struct json_escape * esc = json_escape_string_ (tmpctx , log_escaped , log_escaped_len );
522- const char * log_msg = json_escape_unescape (tmpctx , esc );
519+ const char * log_msg = json_escape_unescape_len (tmpctx ,
520+ plugin -> buffer + msgtok -> start ,
521+ msgtok -> end - msgtok -> start );
523522 char * * lines ;
524523
525524 /* Weird \ escapes aren't handled by json_escape_unescape. This is for you, clboss! */
You can’t perform that action at this time.
0 commit comments