Bug#4079 - Invalid response encoding for SFTP space-available request.
Use sftp_msg_write_int() for 32-bit values; write_long() is for 64-bit values.
Backport of fix for Bug#4079 to 1.3.5 branch.