Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
call copy_in correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed Mar 8, 2011
1 parent 6f882de commit 84d3700
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/monic_file_writer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ copy_in(Fd, Fun, Location, Remaining, Sha) ->
true ->
case file:pwrite(Fd, Location, Bin) of
ok ->
copy_in(Fd, Fd, Fun, Location + Size,
copy_in(Fd, Fun, Location + Size,
Remaining - Size,
crypto:sha_update(Sha, Bin));
Else ->
Else
Expand Down

0 comments on commit 84d3700

Please sign in to comment.