[comp.os.minix] Patch for estdio 2.1

cechew@bruce.cs.monash.OZ.AU (Earl Chew) (12/18/90)

This is a high priority bug fix for estdio 2.1 (which is why I am posting it
rather than waiting for 2.2 [probably be after Minix 1.6.x]).

The bug is most visible when using uncompress (or compress -d) on files of
certain sizes (not all sizes will flush out the bug).

Only those programs using fread() are affected by this bug (and only sometimes
depending on the size of the request and the contents of the buffer). Programs
that don't use fread() are unaffected.

Enclosed are two copies of the patch. One in plaintext and one uuencoded.

Please apply this patch.

Earl

-------------------------------------------------------------------------------
*** /tmp/stdio/fread.c	Tue Oct 30 16:33:23 1990
--- fread.c	Tue Dec 18 12:29:40 1990
***************
*** 66,71 ****
--- 66,72 ----
  	MEMCPY(p, q, (size_t) readsize);
  	p += readsize;
  	q += readsize;
+ 	readsize = 0;
        }
        else {
  	do
-------------------------------------------------------------------------------
table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 fread.cd
M*BHJ("]T;7 O<W1D:6\O9G)E860N8PE4=64@3V-T(#,P(#$V.C,S.C(S(#$Yz
M.3 *+2TM(&9R96%D+F,)5'5E($1E8R Q." Q,CHR.3HT," Q.3DP"BHJ*BHJy
M*BHJ*BHJ*BHJ*@HJ*BH@-C8L-S$@*BHJ*@HM+2T@-C8L-S(@+2TM+0H@( E-x
M14U#4%DH<"P@<2P@*'-I>F5?="D@<F5A9'-I>F4I.PH@( EP("L](')E861Sw
M:7IE.PH@( EQ("L](')E861S:7IE.PHK( ER96%D<VEZ92 ](# ["B @(" @v
:(" @?0H@(" @(" @(&5L<V4@>PH@( ED;PIRu
 t
end
-------------------------------------------------------------------------------
-- 
Earl Chew, Dept of Computer Science, Monash University, Australia 3168
EMAIL: cechew@bruce.cs.monash.edu.au PHONE: 03 5655447 FAX: 03 5655146
----------------------------------------------------------------------