Server now sends the correct number of bytes to the client. Files transferred from server to client are longer gaining extra NULL bytes.