Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!sco!staceyc From: staceyc@sco.COM (Stacey Campbell) Newsgroups: comp.sources.games.bugs Subject: Yahtzee patch for score.c Message-ID: <451@scorn.sco.COM> Date: 28 Nov 89 22:11:55 GMT Sender: news@sco.COM Reply-To: staceyc@sco.COM (Stacey Campbell) Organization: The Santa Cruz Operation, Inc. Lines: 16 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