summaryrefslogtreecommitdiffstats
path: root/battlestar/getcom.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-02-10 00:45:45 +0000
committerhubertf <hubertf@NetBSD.org>1999-02-10 00:45:45 +0000
commit22a27dede77166c7bdf1de647d4d2b961fcd92c2 (patch)
treeeba164fcad44498207f63281968e224f52d40bcb /battlestar/getcom.c
parente0e186091a777dfe9cf3c22deeff989f459d8db9 (diff)
downloadbsdgames-darwin-22a27dede77166c7bdf1de647d4d2b961fcd92c2.tar.gz
bsdgames-darwin-22a27dede77166c7bdf1de647d4d2b961fcd92c2.tar.zst
bsdgames-darwin-22a27dede77166c7bdf1de647d4d2b961fcd92c2.zip
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>.
Diffstat (limited to 'battlestar/getcom.c')
0 files changed, 0 insertions, 0 deletions