On Tue, Jan 13, 2004 at 10:02:43PM -0600, Graham Wilson wrote:

> * Package name    : atanks
>   Version         : 1.0.0
>   Upstream Author : Tom Hudson <[EMAIL PROTECTED]>
> * URL             : http://atanks.sourceforge.net/
> * License         : GPL
>   Description     : tank-battling game
> 

  Here's a small patch which would be nice to include if you
 are planning on making the game setgid(games).

Steve
--

--- atanks.cc-orig      2004-01-14 12:59:00.000000000 +0000
+++ atanks.cc   2004-01-14 12:59:23.000000000 +0000
@@ -2874,7 +2874,8 @@
 
        homeDir = getenv ("HOME");
        if (homeDir) {
-               sprintf (fullPath ,"%s/%s", homeDir, ".atanks-config");
+               memset( fullPath, '\0', sizeof(fullPath));
+               snprintf (fullPath ,sizeof(fullPath)-1,"%s/%s", homeDir, 
".atanks-config");
        } else {
                sprintf (fullPath, "%s", ".atanks-config");
        }

Reply via email to