Skip to content

Commit

Permalink
update c binds
Browse files Browse the repository at this point in the history
  • Loading branch information
eendroroy committed Jan 16, 2025
1 parent 36f49df commit 9df156a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ffi/c_binds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub unsafe extern "C" fn c_generate_hotp(
CStr::from_ptr(secret).to_str().unwrap(),
length as u8,
radix as u8,
counter,
counter as u64,
);
let c_string = std::ffi::CString::new(hotp).unwrap();
c_string.into_raw()
Expand Down

0 comments on commit 9df156a

Please sign in to comment.