stdio: implements legacy cuserid proposal.

This commit is contained in:
David Carlier
2023-04-05 22:16:20 +01:00
parent 4fc069e6b5
commit 637dd22d3d
4 changed files with 30 additions and 12 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ pub unsafe extern "C" fn strlcpy(dst: *mut c_char, src: *const c_char, n: size_t
#[no_mangle]
pub unsafe extern "C" fn strlcat(dst: *mut c_char, src: *const c_char, n: size_t) -> size_t {
let len = strlen(dst) as isize;
let mut d = dst.offset(len);
let d = dst.offset(len);
strlcpy(d, src, n)
}