Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   hubertf
Date:           Wed Feb 10 00:45:47 UTC 1999

Modified Files:
        src/games/sail: assorted.c dr_1.c dr_2.c dr_3.c dr_4.c dr_5.c extern.h
            parties.c pl_1.c pl_3.c pl_4.c pl_5.c pl_6.c pl_7.c pl_main.c
            sync.c
Log Message:
The game sail(6) has a function Write() which is used both with
integer arguments and with string arguments (cast to long, and in one
place to int).  The patch here cleans this up, making it into two
separate functions; this allows for the game to be made const-correct
in future and improves portability.

The patch also contains two other fragments: a change to use the
symbolic constant SEEK_END with fseek(), and a change to use snprintf
in one place to avoid a buffer overrun.

Via PR 6569 by Joseph Myers <jsm28%cam.ac.uk@localhost>.




Home | Main Index | Thread Index | Old Index