aboutsummaryrefslogtreecommitdiffstats
path: root/passes/cmds/write_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'passes/cmds/write_file.cc')
-rw-r--r--passes/cmds/write_file.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/write_file.cc b/passes/cmds/write_file.cc
index 9f22861a5..3f4419724 100644
--- a/passes/cmds/write_file.cc
+++ b/passes/cmds/write_file.cc
@@ -70,7 +70,7 @@ struct WriteFileFrontend : public Frontend {
char buffer[64 * 1024];
size_t bytes;
- while (0 < (bytes = f->readsome(buffer, sizeof(buffer))))
+ while (0 < (bytes = readsome(*f, buffer, sizeof(buffer))))
fwrite(buffer, bytes, 1, of);
fclose(of);