Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37561241
en ru br
ALT Linux repositórios
S:2.4-alt3

Group :: Jogos/Arcade
RPM: xboing

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: xboing.font.diff
Download


--- init.c.orig	2009-12-13 03:17:02 +0300
+++ init.c	2012-08-10 09:35:35 +0400
@@ -266,12 +266,12 @@
 #endif
 {
 	/* Create all required font structures */
-	char str[80];
+	char str[128];
 
 	/* Font used for titles */
     if (!(titleFont = XLoadQueryFont(display, TITLE_FONT)))
 	{
-		sprintf(str, 
+		snprintf(str, sizeof (str) - 1,
 			"Cannot open the title font <%s>\nUsing default called fixed.", 
 			TITLE_FONT);
 		WarningMessage(str);
@@ -281,7 +281,7 @@
 	/* Very small font used for copyright message etc. */
 	if (!(copyFont = XLoadQueryFont(display, COPY_FONT)))
 	{
-		sprintf(str, 
+		snprintf(str, sizeof (str) - 1,
 			"Cannot open the copyright font <%s>\nUsing default called fixed.", 
 			COPY_FONT);
 		WarningMessage(str);
@@ -291,7 +291,7 @@
 	/* Font used for general text everywhere */
 	if (!(textFont = XLoadQueryFont(display, TEXT_FONT)))
 	{
-		sprintf(str, 
+		snprintf(str, sizeof (str) - 1,
 			"Cannot open the text font <%s>\nUsing default called fixed.", 
 			TEXT_FONT);
 		WarningMessage(str);
@@ -301,7 +301,7 @@
 	/* Font used for data text in intro */
 	if (!(dataFont = XLoadQueryFont(display, DATA_FONT)))
 	{
-		sprintf(str, 
+		snprintf(str, sizeof (str) - 1,
 			"Cannot open the data font <%s>\nUsing default called fixed.", 
 			DATA_FONT);
 		WarningMessage(str);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009