s3 sendfile: Fix two bugs in sendfile
authorTim Prouty <tprouty@samba.org>
Tue, 19 May 2009 01:20:18 +0000 (18:20 -0700)
committerTim Prouty <tprouty@samba.org>
Tue, 19 May 2009 01:31:02 +0000 (18:31 -0700)
commitc3bc83314080cd5296f55fa30a8d406593877636
treee2a0d7768a9a3f028debc1918b77c04ea64a9e50
parent518666102367ce21782cb0f597c136ac125cef05
s3 sendfile: Fix two bugs in sendfile

These were found interally via code inspection.

1) fake_sendfile was incorrectly writing zeros over real data on a
   short read.

2) sendfile_short_send was doing 4 byte writes instead of 1024 byte
   writes due to an incorrect sizeof usage.

Jermey, Vl please check
source3/smbd/reply.c