From 5d8814a9ebe4ec9f2cb460881e72cc1249ac0150 Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sat, 30 Sep 2023 22:52:46 +0200 Subject: [PATCH] fix printf test --- libuwuc/src/fmt/printf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libuwuc/src/fmt/printf.rs b/libuwuc/src/fmt/printf.rs index e1eec98..7245be8 100644 --- a/libuwuc/src/fmt/printf.rs +++ b/libuwuc/src/fmt/printf.rs @@ -43,12 +43,12 @@ mod tests { #[test] #[cfg_attr(miri, ignore = "variadic")] fn empty_format() { - unsafe { test_printf("\0", cstr!("")) } + unsafe { test_printf("", cstr!("")) } } #[test] #[cfg_attr(miri, ignore = "variadic")] fn constant_string() { - unsafe { test_printf("hello, world\0", cstr!("hello, world")) } + unsafe { test_printf("hello, world", cstr!("hello, world")) } } }