mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
adc0fc984d
commit
a7ebc28738
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue