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:
cbiesinger%web.de 2004-07-30 21:53:56 +00:00
parent 9ecf822344
commit f35908ccd0

View File

@ -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");