Fix r_file_truncate