Truncate the calculated transfer curpos when reading local file data.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 5 Nov 2009 15:59:08 +0000 (16:59 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 5 Nov 2009 15:59:08 +0000 (16:59 +0100)
commit1c5e71ff5eb6058d1729e43cc22167b799c99bed
tree42d698f19eb8c9ef150a1f65908c80a9226c5193
parent7665d29ddb2ab55ab455a4cfcd840ea38af06c04
Truncate the calculated transfer curpos when reading local file data.

With command-stream text left unsent in the socket pipe, curpos would
become negative, which messes things up.
daemon/transfer.c