syslog-ng/syslog-ng-3.5.4.1-libjson-c...

12 lines
519 B
Diff

--- syslog-ng-3.5.4.1/modules/json/jsonparser.c.orig 2014-06-28 17:49:52.233198882 +0000
+++ syslog-ng-3.5.4.1/modules/json/jsonparser.c 2014-06-28 17:39:58.023360106 +0000
@@ -187,7 +187,7 @@
if (tok->err != json_tokener_success)
{
msg_error ("Unparsable JSON stream encountered",
- evt_tag_str ("error", json_tokener_errors[tok->err]), NULL);
+ evt_tag_str ("error", json_tokener_error_desc(tok->err)), NULL);
json_tokener_free (tok);
return FALSE;
}