fix argv handling

This commit is contained in:
nora 2023-10-01 11:35:53 +02:00
parent 21d3f12572
commit 613482b8c4
7 changed files with 28 additions and 5 deletions

View file

@ -46,7 +46,7 @@ pub unsafe extern "C" fn printf(format: *const u8, mut args: ...) -> c_int {
#[no_mangle]
pub unsafe extern "C" fn __fprintf_chk(file: &FileStream, _flag: c_int, format: *const u8, mut args: ...) -> c_int {
pub unsafe extern "C" fn __fprintf_chk(_flag: c_int, file: &FileStream, format: *const u8, mut args: ...) -> c_int {
let mut sink = WriteCounter(file, 0);
let result = libuwuc::fmt::printf::printf_generic(