We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 197e498 commit 4568c1fCopy full SHA for 4568c1f
1 file changed
redisql_lib/src/redis.rs
@@ -446,7 +446,7 @@ pub unsafe fn string_ptr_len(
446
rm::ffi::RedisModule_StringPtrLen.unwrap()(str, &mut len)
447
as *mut u8;
448
let slice = slice::from_raw_parts(base, len);
449
- str::from_utf8_unchecked(slice)
+ str::from_utf8_unchecked(slice).trim_end_matches(char::from(0))
450
}
451
452
#[repr(C)]
0 commit comments