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

Peter Pentchev roam-guest at alioth.debian.org
Sun Jan 16 21:18:42 UTC 2011


Author: roam-guest
Date: 2011-01-16 21:18:42 +0000 (Sun, 16 Jan 2011)
New Revision: 11661

Modified:
   packages/branches/xdigger/lenny/debian/patches/buffers
Log:
Fix two remaining issues in my buffer handling fix.


Modified: packages/branches/xdigger/lenny/debian/patches/buffers
===================================================================
--- packages/branches/xdigger/lenny/debian/patches/buffers	2011-01-15 12:31:30 UTC (rev 11660)
+++ packages/branches/xdigger/lenny/debian/patches/buffers	2011-01-16 21:18:42 UTC (rev 11661)
@@ -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-13
+Last-Update: 2011-01-16
 
 --- a/highscore.c
 +++ b/highscore.c
@@ -150,7 +150,7 @@
 -  strcat(strcpy(clives, " LIVES: "), slives);
 +  snprintf(slevel_number, sizeof(slevel_number), "%.2d", akt_level_number);
 +  snprintf(slives, sizeof(slives), "%.2d", lives);
-+  snprintf(croom, sizeof(croom), " ROOM: %s", slevel_number);
++  snprintf(croom, sizeof(croom), " ROOM:  %s", slevel_number);
 +  snprintf(clives, sizeof(clives), " LIVES: %s", slives);
  
    if (!vert240)
@@ -180,8 +180,8 @@
  
 -  strcpy(localhost, gethostbyname(localhost)->h_name);
 -  strcpy(xhost, gethostbyname(xhost)->h_name);
-+  snprintf(localhost, sizeof(localhost), gethostbyname(localhost)->h_name);
-+  snprintf(xhost, sizeof(xhost), gethostbyname(xhost)->h_name);
++  snprintf(localhost, sizeof(localhost), "%s", gethostbyname(localhost)->h_name);
++  snprintf(xhost, sizeof(xhost), "%s", gethostbyname(xhost)->h_name);
    if (debug)
      fprintf(stderr, "%s: localhost=%s\n             xhost=%s\n",
              progname, localhost, xhost);




More information about the Pkg-games-commits mailing list