r8600 - in packages/trunk/barrage/debian: . patches

Gonéri Le Bouder goneri at alioth.debian.org
Sat Jan 3 16:32:09 UTC 2009


Author: goneri
Date: 2009-01-03 16:32:09 +0000 (Sat, 03 Jan 2009)
New Revision: 8600

Added:
   packages/trunk/barrage/debian/patches/fix_sprintf
Modified:
   packages/trunk/barrage/debian/changelog
   packages/trunk/barrage/debian/patches/series
Log:
* fix an invalid call of sprintf fix_sprintf()
  http://lists.debian.org/debian-devel/2008/12/msg01079.html


Modified: packages/trunk/barrage/debian/changelog
===================================================================
--- packages/trunk/barrage/debian/changelog	2009-01-02 12:04:21 UTC (rev 8599)
+++ packages/trunk/barrage/debian/changelog	2009-01-03 16:32:09 UTC (rev 8600)
@@ -1,8 +1,9 @@
-barrage (1.0.2-3) UNRELEASED; urgency=low
+barrage (1.0.2-3) experimental; urgency=low
 
-  * 
+  * fix an invalid call of sprintf fix_sprintf()
+    http://lists.debian.org/debian-devel/2008/12/msg01079.html
 
- -- Barry deFreese <bddebian at comcast.net>  Sun, 30 Mar 2008 15:57:04 -0400
+ -- Gonéri Le Bouder <goneri at rulezlan.org>  Sat, 03 Jan 2009 17:26:24 +0100
 
 barrage (1.0.2-2) unstable; urgency=low
 

Added: packages/trunk/barrage/debian/patches/fix_sprintf
===================================================================
--- packages/trunk/barrage/debian/patches/fix_sprintf	                        (rev 0)
+++ packages/trunk/barrage/debian/patches/fix_sprintf	2009-01-03 16:32:09 UTC (rev 8600)
@@ -0,0 +1,11 @@
+--- barrage-1.0.2.orig/src/SFont.c
++++ barrage-1.0.2/src/SFont.c
+@@ -182,7 +182,7 @@
+ 		if ((ch=='\b')&&(strlen(text)>0))
+ 		    text[strlen(text)-1]='\0';
+ 		else if (ch!='\b')
+-		    sprintf(text,"%s%c",text,ch);
++		    sprintf(text + strlen(buff),"%c",ch);
+ 		/* quick hack to use limited number of characters rather than
+ 		 * pixels - Michael Speck */
+ 	        if (strlen(text)/*TextWidth2(Font,text)*/>PixelWidth) 

Modified: packages/trunk/barrage/debian/patches/series
===================================================================
--- packages/trunk/barrage/debian/patches/series	2009-01-02 12:04:21 UTC (rev 8599)
+++ packages/trunk/barrage/debian/patches/series	2009-01-03 16:32:09 UTC (rev 8600)
@@ -1,2 +1,3 @@
+fix_sprintf
 01_getopt.diff
 02_nosound.diff




More information about the Pkg-games-commits mailing list