diff options
Diffstat (limited to 'wsutil/jsmn.c')
-rw-r--r-- | wsutil/jsmn.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wsutil/jsmn.c b/wsutil/jsmn.c index 834e4b1ee9..fdfd3a74cc 100644 --- a/wsutil/jsmn.c +++ b/wsutil/jsmn.c @@ -22,6 +22,10 @@ #include <stdlib.h> +/* WS modification starts here */ +#define JSMN_STRICT +/* WS modification ends here */ + #include "jsmn.h" #include "log.h" @@ -333,6 +337,7 @@ void jsmn_init(jsmn_parser *parser) { parser->toksuper = -1; } +/* WS modification starts here */ gboolean jsmn_is_json(const guint8* buf, const size_t len) { /* We expect no more than 1024 tokens */ @@ -372,6 +377,7 @@ gboolean jsmn_is_json(const guint8* buf, const size_t len) return ret; } +/* WS modification ends here */ /* * Editor modelines - http://www.wireshark.org/tools/modelines.html |