Source-Changes archive

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

CVS commit: src/games/monop



Module Name:    src
Committed By:   dholland
Date:           Sat Feb 23 22:28:46 UTC 2008

Modified Files:
        src/games/monop: trade.c

Log Message:
Fixes from OpenBSD.
   - If a player goes bankrupt buying a property (which shouldn't be
allowed, but I guess it is), don't cause them to resign to themselves.
   - Use "NULL", not "0", for pointers.
   - Avoid undefined behavior adjusting the current player after resigning.
   - Don't leak the memory used to store player names.

The last of these is disabled for the moment because we have the pointers
in question tagged const. Will see to this when I'm finished merging.


To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 src/games/monop/trade.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index