URL: <http://gna.org/bugs/?13714>
Summary: [PATCH] Fix type of argument extracted from varargs list. Project: Freeciv Submitted by: mbook Submitted on: Wednesday 06/17/2009 at 17:31 Category: agents Severity: 4 - Important Priority: 7 - High Status: Confirmed Assigned to: mbook Originator Email: Open/Closed: Open Discussion Lock: Any Release: Operating System: None _______________________________________________________ Details: Reposted from freeciv-dev: On 17/06/2009, Bernd Jendrissek <bernd.jendris...@gmail.com> wrote: > I found my agent crashing on tile-related callbacks. > Turns out handle_tile_info() was passing a > struct tile *, but enqueue_call() was taking x > and y coordinates. This couldn't have helped the > "core dumps and memory corruption" referred to in > http://thread.gmane.org/gmane.games.freeciv.cvs/6285, > but that's so 2004 I don't know if that's relevant here. I made a slight adjustement to your patch, namely the trunk version uses the wrapper tile_index(), and the 'const' is written before the typename, in keeping with the general convention in use in the freeciv codebase. ---------------------------------------------------------------- システムの中でメモリを破壊します〜 _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Wednesday 06/17/2009 at 17:31 Name: trunk-fix_agent_va_list_corruption.diff Size: 700B By: mbook <http://gna.org/bugs/download.php?file_id=5987> ------------------------------------------------------- Date: Wednesday 06/17/2009 at 17:31 Name: S2_1-fix_agent_va_list_corruption.diff Size: 695B By: mbook <http://gna.org/bugs/download.php?file_id=5988> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?13714> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev