1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s3: Fix Coverity ID 585: NEGATIVE_RETURNS

This commit is contained in:
Volker Lendecke
2011-03-27 19:27:26 +02:00
parent 08e4e7fef7
commit 30085eb792

View File

@ -80,7 +80,7 @@ static int copy_reg(const char *source, const char *dest)
#endif
goto err;
if (transfer_file(ifd, ofd, (size_t)-1) == -1)
if (transfer_file(ifd, ofd, source_stats.st_ex_size) == -1)
goto err;
/*