summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vtcol.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vtcol.rs b/src/vtcol.rs
index ff1fc2f..0c042e3 100644
--- a/src/vtcol.rs
+++ b/src/vtcol.rs
@@ -601,7 +601,7 @@ get_console_fd
fn
write_to_term (fd : Fd, buf : &str)
{
- let len = buf.len() as u64;
+ let len = buf.len() as libc::size_t;
let raw = std::ffi::CString::new(buf.as_bytes()).unwrap();
unsafe { libc::write(fd, raw.as_ptr() as *const libc::c_void, len) };
}