Skip to content

Commit 02e604d

Browse files
In-lineJoshua Nelson
and
Joshua Nelson
authored
Update library/std/src/sys/unix/thread.rs
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 8e9e877 commit 02e604d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: std/src/sys/unix/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl Thread {
156156
zx_thread_self(),
157157
ZX_PROP_NAME,
158158
name.as_ptr() as *const libc::c_void,
159-
libc::strlen(name.as_ptr()),
159+
name.to_bytes().len(),
160160
);
161161
}
162162
}

0 commit comments

Comments
 (0)