about summary refs log tree commit diff
path: root/src/unistd/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/truncate.c')
-rw-r--r--src/unistd/truncate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/truncate.c b/src/unistd/truncate.c
index 322349d2..3edacd12 100644
--- a/src/unistd/truncate.c
+++ b/src/unistd/truncate.c
@@ -4,7 +4,7 @@
 
 int truncate(const char *path, off_t length)
 {
-	return syscall3(__NR_truncate, (long)path, SYSCALL_LL(length));
+	return syscall(__NR_truncate, path, __SYSCALL_LL(length));
 }
 
 LFS64(truncate);