diff --git a/include/simdjson/stringparsing.h b/include/simdjson/stringparsing.h index f2e1288b..1b4b521b 100644 --- a/include/simdjson/stringparsing.h +++ b/include/simdjson/stringparsing.h @@ -111,7 +111,7 @@ really_inline bool parse_string(const uint8_t *buf, UNUSED size_t len, return is_ok; #else //CHECKUNESCAPED #ifdef JSON_TEST_STRINGS // for unit testing - foundString(buf + offset,start_of_string,pj.current_string_buf_loc); + foundString(buf + offset,start_of_string,pj.current_string_buf_loc - 1); #endif // JSON_TEST_STRINGS return true; #endif //CHECKUNESCAPED