Replace some old hard-coded 1024 byte buffers with the new function

This commit is contained in:
Jamie Cameron
2021-03-27 12:24:54 -07:00
parent 11d382cb36
commit d6e50e7f41
6 changed files with 15 additions and 9 deletions

View File

@@ -50,7 +50,8 @@ else {
print "Content-type: application/x-gzip\n\n";
my $buf;
open(TEMP, "<$temp");
while(read(TEMP, $buf, 1024)) {
my $bs = &get_buffer_size();
while(read(TEMP, $buf, $bs)) {
print $buf;
}
close(TEMP);