Author: cazfi Date: Sun Apr 24 16:28:58 2016 New Revision: 32478 URL: http://svn.gna.org/viewcvs/freeciv?rev=32478&view=rev Log: Fixed an attempt to overwrite function free() with memset()
See bug #24606 Modified: branches/S2_6/server/citytools.c Modified: branches/S2_6/server/citytools.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/citytools.c?rev=32478&r1=32477&r2=32478&view=diff ============================================================================== --- branches/S2_6/server/citytools.c (original) +++ branches/S2_6/server/citytools.c Sun Apr 24 16:28:58 2016 @@ -2725,7 +2725,7 @@ return; } - memset(free, 0, O_LAST * sizeof(*free_uk)); + memset(free_uk, 0, O_LAST * sizeof(*free_uk)); output_type_iterate(o) { free_uk[o] = get_city_output_bonus(pcity, get_output_type(o), EFT_UNIT_UPKEEP_FREE_PER_CITY); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits