Author: Gonéri Le Bouder <goneri@rulezlan.org>
Description: fix use of sprintf
Bug: http://sf.net/support/tracker.php?aid=3240767
Bug-Debian: http://lists.debian.org/debian-devel/2008/12/msg01079.html
--- a/src/SFont.c
+++ b/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(text),"%c",ch);
 		/* quick hack to use limited number of characters rather than
 		 * pixels - Michael Speck */
 	        if (strlen(text)/*TextWidth2(Font,text)*/>PixelWidth) 
