Bug#693249: RFS: etw/3.6+svn140-4 [RC] [ITA] arcade-style soccer game
On Wed, Nov 14, 2012 at 12:58 PM, Markus Koschany wrote:
> Changes since the last upload:
>
> * New Maintainer. (Closes: #544922)
> * Eat the Whistle will be maintained in a Git repository from now
> on. Change the Vcs-fields in debian/control accordingly.
> * debian/patches:
> Add 0005-Change-conf-and-replay-path.patch.
> Save and load configuration and replays in $HOME/.etw/ instead of
> /usr/share/games/etw and stop failing silently. (Closes: #693244)
Hi,
I've just reviewed this, and it looks mostly good. I did notice
things like the following:
+ FILE *f;
++ char path[1024];
++ sprintf(path, "%s/%s", getenv("HOME"), ".etw/etw.cfg" );
+ D(bug("Reading configuration...\n"/*-*/));
Note that a hardcoded 1024 isn't very portable. C defines PATH_MAX
for this purpose. Please use that instead.
Thanks,
Mike
Reply to: