r11656 - packages/branches/xdigger/lenny/debian/patches

Peter Pentchev roam-guest at alioth.debian.org
Thu Jan 13 10:19:29 UTC 2011


Author: roam-guest
Date: 2011-01-13 10:19:25 +0000 (Thu, 13 Jan 2011)
New Revision: 11656

Modified:
   packages/branches/xdigger/lenny/debian/patches/buffers
Log:
Fix my buffer overflow fix - a strncat() too many!


Modified: packages/branches/xdigger/lenny/debian/patches/buffers
===================================================================
--- packages/branches/xdigger/lenny/debian/patches/buffers	2011-01-11 16:05:32 UTC (rev 11655)
+++ packages/branches/xdigger/lenny/debian/patches/buffers	2011-01-13 10:19:25 UTC (rev 11656)
@@ -6,7 +6,7 @@
  that will need a complete rewrite of xdigger to clean up.
 Bug-Debian: http://bugs.debian.org/609096
 Author: Peter Pentchev <roam at ringlet.net>
-Last-Update: 2011-01-07
+Last-Update: 2011-01-13
 
 --- a/highscore.c
 +++ b/highscore.c
@@ -185,7 +185,7 @@
    if (debug)
      fprintf(stderr, "%s: localhost=%s\n             xhost=%s\n",
              progname, localhost, xhost);
-@@ -496,13 +496,14 @@
+@@ -496,13 +496,13 @@
        switch (ton_typ)
  	{
  	case TON_DIAMANT:
@@ -195,7 +195,6 @@
  	case TON_SCHRITT:
 -	  strcat(name, "/step.au");
 +	  snprintf(name, sizeof(name), "%s/step.au", XDIGGER_LIB_DIR);
-+	  strncat(name, "/step.au");
  	  break;
  	case TON_STEINE:
 -	  strcat(name, "/stone.au");
@@ -203,7 +202,7 @@
  	  break;
  	}
        
-@@ -510,7 +511,7 @@
+@@ -510,7 +510,7 @@
  /*       if (rplay_display(name) < 0) */
        if (Play_RPlay_Sound(name, 200) < 0)
  	{




More information about the Pkg-games-commits mailing list