From 9fbfb68a12abfc786bcf5458c8e0c7be94bdd651 Mon Sep 17 00:00:00 2001 From: Alik Aslanyan Date: Sat, 13 Apr 2019 22:51:09 +0400 Subject: [PATCH] Fix bug with null terminator in json body --- cpp/helper/moduleconfig.h | 2 +- rust/Cargo.lock | 2 +- rust/Cargo.toml | 2 +- rust/src/ffi/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/helper/moduleconfig.h b/cpp/helper/moduleconfig.h index 08cdb7b..2a77407 100644 --- a/cpp/helper/moduleconfig.h +++ b/cpp/helper/moduleconfig.h @@ -26,7 +26,7 @@ * to add multiple entries. */ #define MODULE_NAME "gRIP" -#define MODULE_VERSION "0.1.2 Beta" +#define MODULE_VERSION "0.1.3 Beta" #define MODULE_AUTHOR "Inline" #define MODULE_URL "https://github.com/in-line/grip" #define MODULE_LOGTAG "gRIP" diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 21b6cd9..08f84a9 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -469,7 +469,7 @@ dependencies = [ [[package]] name = "grip-rust" -version = "0.1.2-beta" +version = "0.1.3-beta" dependencies = [ "bacon_rajan_cc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 9780f82..90d4b6c 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "grip-rust" -version = "0.1.2-beta" +version = "0.1.3-beta" authors = ["alik"] edition = "2018" build = "src/build.rs" diff --git a/rust/src/ffi/mod.rs b/rust/src/ffi/mod.rs index 90df445..0d0ba4c 100644 --- a/rust/src/ffi/mod.rs +++ b/rust/src/ffi/mod.rs @@ -1470,7 +1470,7 @@ pub unsafe extern "C" fn grip_body_from_json( .clone() .into_with_recursion_limit(try_as_usize!(amx, recursion_limit)), pretty, - true + false ) ) .into_bytes(),