mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
only write as much data to the outfile as was read. affects tests only.
This commit is contained in:
parent
48fa1ada07
commit
0c88d9b652
@ -86,7 +86,7 @@ main(int argc, char **argv)
|
||||
|
||||
PRUint32 read;
|
||||
while (NS_SUCCEEDED(stream->Read(buf, sizeof(buf), &read)) && read) {
|
||||
fwrite(buf, 1, sizeof(buf), outfile);
|
||||
fwrite(buf, 1, read, outfile);
|
||||
}
|
||||
printf("Done\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user