]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/windows/thread.rs
Fix unsound behaviour with null characters in thread names (issue #32475)
[rust.git] / src / libstd / sys / windows / thread.rs
index b18772c0c24381c75589fcd140786f87d96067d4..6908775e86fc1ba25e8dad4cf314e72954bdabac 100644 (file)
@@ -54,7 +54,7 @@ extern "system" fn thread_start(main: *mut c_void) -> c::DWORD {
         }
     }
 
-    pub fn set_name(_name: &str) {
+    pub fn set_name(_name: &CStr) {
         // Windows threads are nameless
         // The names in MSVC debugger are obtained using a "magic" exception,
         // which requires a use of MS C++ extensions.