only write as much data to the outfile as was read. affects tests only.
git-svn-id: svn://10.0.0.236/trunk@160152 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9ecf822344
commit
f35908ccd0
@ -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…
x
Reference in New Issue
Block a user