summaryrefslogtreecommitdiff
path: root/shell/source/unix/sysshell/recently_used_file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/unix/sysshell/recently_used_file.cxx')
-rw-r--r--shell/source/unix/sysshell/recently_used_file.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx
index 2bf7d7eb30b0..5a9b4643081b 100644
--- a/shell/source/unix/sysshell/recently_used_file.cxx
+++ b/shell/source/unix/sysshell/recently_used_file.cxx
@@ -99,9 +99,9 @@ void recently_used_file::reset() const
}
-void recently_used_file::truncate(off_t length)
+void recently_used_file::truncate()
{
- if (ftruncate(fileno(file_), length) == -1)
+ if (ftruncate(fileno(file_), 0) == -1)
throw "I/O error: ftruncate failed";
}