Added mysteriously-missing buffer allocation in client_file_writing.