summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-05-07 00:15:11 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-05-07 00:15:11 +0200
commitaa84178998e0d589fb737304d9a887db80250a39 (patch)
treeb3d0def106f8d71221130542a030fc50888727a3 /src
parentece7229f93f66dde7a15f0a52125ab14ca71babd (diff)
downloadvtcol-aa84178998e0d589fb737304d9a887db80250a39.tar.gz
vtcol.rs: adapt for 64 bit machine
Diffstat (limited to 'src')
-rw-r--r--src/vtcol.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vtcol.rs b/src/vtcol.rs
index 3503462..86ce0f4 100644
--- a/src/vtcol.rs
+++ b/src/vtcol.rs
@@ -566,7 +566,7 @@ get_console_fd
fn
write_to_term (fd : Fd, buf : &str)
{
- let len = buf.len() as u32;
+ let len = buf.len() as u64;
let raw = std::ffi::CString::from_slice(buf.as_bytes());
unsafe { libc::write(fd, raw.as_ptr() as *const libc::c_void, len) };
}