mirror of
https://github.com/hakaioffsec/coffee
synced 2026-06-08 14:31:23 +00:00
Add mut to variadic args for as_va_list() borrow
This commit is contained in:
@@ -457,7 +457,7 @@ extern "C" fn beacon_format_append(format: *mut Formatp, text: *const c_char, le
|
||||
|
||||
/// Append a formatted string to this object.
|
||||
#[no_mangle]
|
||||
unsafe extern "C" fn beacon_format_printf(format: *mut Formatp, fmt: *const c_char, args: ...) {
|
||||
unsafe extern "C" fn beacon_format_printf(format: *mut Formatp, fmt: *const c_char, mut args: ...) {
|
||||
if format.is_null() {
|
||||
return;
|
||||
}
|
||||
@@ -603,7 +603,7 @@ pub extern "C" fn beacon_get_output_data() -> &'static mut Carrier {
|
||||
|
||||
/// Format and present output to the Beacon operator.
|
||||
#[no_mangle]
|
||||
unsafe extern "C" fn beacon_printf(_type: c_int, fmt: *mut c_char, args: ...) {
|
||||
unsafe extern "C" fn beacon_printf(_type: c_int, fmt: *mut c_char, mut args: ...) {
|
||||
// Use a buffer large enough for most format operations
|
||||
let mut buffer = vec![0u8; 4096];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user