Репозитории ALT
S: | 1.12.2-alt2.1 |
5.1: | 1.12.2-alt1 |
4.1: | 1.12.2-alt1 |
4.0: | 1.12.2-ipl12mdk |
3.0: | 1.12.2-ipl12mdk |
Группа :: Графика
Пакет: giftrans
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 11_ignore_comments.diff
Скачать
Скачать
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;