patch for hugs-dec2001

Sean O'Rourke educated_foo@yahoo.com
Sun, 5 May 2002 19:13:06 -0700 (PDT)


In a couple of places, fgetc()'s return value gets cast to a char before being
compared with EOF.  The one in input.c makes things hang on my machine.  I
attached a couple of diffs that fix my problem.

/s

btw, readline support is a glorious thing...

begin 0644 eof-patch
M*BHJ("]H;VUE+W-E86XO<W)C+VAU9W,Y."U$96,R,#`Q+W-R8R]H=6=S+F-^
M"51H=2!$96,@,3,@,C(Z-#<Z,S`@,C`P,0HM+2T@+VAO;64O<V5A;B]S<F,O
M:'5G<SDX+41E8S(P,#$O<W)C+VAU9W,N8PE3=6X@36%Y("`U(#$Y.C`V.C`R
M(#(P,#(**BHJ*BHJ*BHJ*BHJ*BHJ"BHJ*B`S-S,L,S<Y("HJ*BH*("![($=6
M87)N86UE(&QI;F4@(#T@(B(["B`@("!I;G0@("`@("!L:6YE<"`](#`["B`@
M"B$@("!C:&%R(&,["B`@("`@("`@"B`@("!W:&EL92`H("AC/69G971C*&8I
M*2`A/2!%3T8@)B8@8R`A/2`G7&XG*2![("`@("`O*B!R96%D($A51U-&3$%'
M4R`@("`@("`@("`J+PH@("`@("!I9B`H*&,@(3T@)UQT)RD@)B8@*&,@(3T@
M)UQR)RDI('L@("`@("`@("`@("`@+RH@<VMI<"!S;VUE(&-O;G1R;VP@8VAA
M<G,@*B\*+2TM(#,W,RPS-SD@+2TM+0H@('L@1U9A<FYA;64@;&EN92`@/2`B
M(CL*("`@(&EN="`@("`@(&QI;F5P(#T@,#L*("`*(2`@(&EN="!C.PH@("`@
M("`@(`H@("`@=VAI;&4@*"`H8SUF9V5T8RAF*2D@(3T@14]&("8F(&,@(3T@
M)UQN)RD@>R`@("`@+RH@<F5A9"!(54=31DQ!1U,@("`@("`@("`@*B\*("`@
M("`@:68@*"AC("$]("=<="<I("8F("AC("$]("=<<B<I*2![("`@("`@("`@
M("`@("\J('-K:7`@<V]M92!C;VYT<F]L(&-H87)S("HO"BHJ*B`O:&]M92]S
M96%N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7'(G*2!["B`@("`@("`@("`@("`@8VAA<B!C(#T@9F=E=&,H:6YP=713=')E
%86TI.PH`
end


=====
"A foo and his money are soon parted."

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com