mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01: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 mut cursor = 0_usize;
|
||||||
|
|
||||||
let tag = b"servoshell\0".as_ptr() as _;
|
let tag = c"servoshell".as_ptr() as _;
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let result = {
|
let result = {
|
||||||
|
@ -735,7 +735,7 @@ fn redirect_stdout_to_logcat() {
|
||||||
__android_log_write(
|
__android_log_write(
|
||||||
3,
|
3,
|
||||||
tag,
|
tag,
|
||||||
b"error in log thread; closing\0".as_ptr() as *const _,
|
c"error in log thread; closing".as_ptr() as *const _,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue