Replace null-byte terminated string literals with C-string literals (#32631)

Signed-off-by: Mu Xianming <mu.xianming@lmwn.com>
Co-authored-by: Mu Xianming <mu.xianming@lmwn.com>
This commit is contained in:
Mu Xian Ming 2024-06-28 20:19:11 +08:00 committed by GitHub
parent adc0fc984d
commit a7ebc28738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -714,7 +714,7 @@ fn redirect_stdout_to_logcat() {
let mut cursor = 0_usize;
let tag = b"servoshell\0".as_ptr() as _;
let tag = c"servoshell".as_ptr() as _;
loop {
let result = {
@ -735,7 +735,7 @@ fn redirect_stdout_to_logcat() {
__android_log_write(
3,
tag,
b"error in log thread; closing\0".as_ptr() as *const _,
c"error in log thread; closing".as_ptr() as *const _,
);
}
return;