Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37570580
en ru br
ALT Linux repositórios
S:1.12.2-alt2.1
5.0: 1.12.2-alt1
4.1: 1.12.2-alt1
4.0: 1.12.2-ipl12mdk
3.0: 1.12.2-ipl12mdk

Group :: Gráficos
RPM: giftrans

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 11_ignore_comments.diff
Download


Ignore comments in rgb.txt. re #76951
--- giftrans-1.12.2.orig/giftrans.c
+++ giftrans-1.12.2/giftrans.c
@@ -811,10 +813,12 @@
 
 	image=argv[0];
 	root=NULL;
-	if (*rgb)
+	if (*rgb) {
 		if ((src=fopen(rgb,"r"))!=NULL) {
 			next= &root;
 			while (fgets(line,sizeof(line),src)) {
+				if (line[0] == '!')
+					continue;
 				*next=(struct entry *)malloc(sizeof(struct entry));
 				for (ptr=line;strchr(" \t",*ptr);ptr++);
 				for (nptr=ptr;!strchr(" \t",*ptr);ptr++);
@@ -847,7 +851,7 @@
 			*rgb='\0';
 #endif
 		}
-
+	}
 	bc.index=NONE;
 	tc.index=NONE;
 	tn.index=NONE;
 
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