Author: muggenhor
Date: Thu Nov 13 23:42:05 2008
New Revision: 6283

URL: http://svn.gna.org/viewcvs/warzone?rev=6283&view=rev
Log:
 * Make getPlayerName and getPlayerColourName const correct
 * Fix a buffer overflow in getPlayerColourName resulting from translations for 
player colours being larger than the string buffer that was reserved for them
  - Instead just return gettext()'s return value (because "The resulting string 
is statically allocated and must not be modified or freed.")

Modified:
    trunk/src/multiplay.c
    trunk/src/multiplay.h
    trunk/src/scriptfuncs.c


_______________________________________________
Warzone-commits mailing list
Warzone-commits@gna.org
https://mail.gna.org/listinfo/warzone-commits

Reply via email to