FreeRDP/FreeRDP — pull request #365 by pjd (2012-01-24 10:49:07+00:00)
Title: Handle short writes properly in transport_write().

Before this change if short write (send) occured, we were trying to
resend without updating length variable, so we were trying to send
too much and the following undefined data were causing the other
side to terminate connection.