[comp.sources.games.bugs] Yahtzee patch for score.c

staceyc@sco.COM (Stacey Campbell) (11/29/89)

A bug has been found in score.c in the recent yahtzee2 distribution
(thanks Laura).  The second and third arguments to fwrite() should
be swapped.  Of course testing on 386, 680?0 and 3b2 Unix boxes failed
to show a problem (maybe the compilers saw my mistake and secretly
swapped them back)!

Here's the diff;

117c117
< 	fwrite((char *)board, (unsigned)sizeof(score_t), (unsigned)limit, fp);
---
> 	fwrite((char *)board, (unsigned)limit, (unsigned)sizeof(score_t), fp);
-- 
                        Stacey Campbell 
      {uunet,ucscc,decwrl,sun,att,microsoft,wyse}!sco!staceyc
                        staceyc@sco.com