about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/truncate.c')
-rw-r--r--sysdeps/mach/hurd/truncate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/truncate.c b/sysdeps/mach/hurd/truncate.c
index 7453bfb3a9..5250c3dd9d 100644
--- a/sysdeps/mach/hurd/truncate.c
+++ b/sysdeps/mach/hurd/truncate.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@ DEFUN(truncate, (file_name, length),
   if (file == MACH_PORT_NULL)
     return -1;
 
-  err = __file_truncate (file, length);
+  err = __file_set_size (file, length);
   __mach_port_deallocate (__mach_task_self (), file);
 
   if (err)