ALT Linux repositórios
Group :: Gráficos
RPM: giftrans
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: 11_ignore_comments.diff
Download
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;