Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 271645
Collapse All | Expand All

(-)d4x.orig/main/face/edit.cc (-1 / +1 lines)
Lines 1450-1456 Link Here
1450
1450
1451
static void _proxy_port_changed_(GtkEntry *entry,GtkEntry *entryh){
1451
static void _proxy_port_changed_(GtkEntry *entry,GtkEntry *entryh){
1452
	const char *tmp=gtk_entry_get_text(entryh);
1452
	const char *tmp=gtk_entry_get_text(entryh);
1453
	char *tmp1=index(tmp,':');
1453
	char *tmp1 = (char *) index(tmp,':');
1454
	if (tmp1){
1454
	if (tmp1){
1455
		*tmp1=0;
1455
		*tmp1=0;
1456
		char *ns=sum_strings(tmp,":",gtk_entry_get_text(entry),NULL);
1456
		char *ns=sum_strings(tmp,":",gtk_entry_get_text(entry),NULL);
(-)d4x.orig/main/ftp.cc (-1 / +1 lines)
Lines 261-267 Link Here
261
};
261
};
262
262
263
static void d4x_ftp_parse_pasv(const char *str,int args[]){
263
static void d4x_ftp_parse_pasv(const char *str,int args[]){
264
	char *a=index(str,'(');
264
	char *a = (char *) index(str,'(');
265
	if (a==NULL) return;
265
	if (a==NULL) return;
266
	a+=1;
266
	a+=1;
267
	int i=0;
267
	int i=0;
(-)d4x.orig/main/html.cc (-1 / +1 lines)
Lines 700-706 Link Here
700
700
701
void tHtmlParser::set_content_type(const char *ct){
701
void tHtmlParser::set_content_type(const char *ct){
702
	//Example: text/html; charset=koi8-r
702
	//Example: text/html; charset=koi8-r
703
	char *a=index(ct,'=');
703
	const char *a=index(ct,'=');
704
	if (a) codepage=a+1;
704
	if (a) codepage=a+1;
705
};
705
};
706
706
(-)d4x.orig/main/locstr.cc (-8 / +8 lines)
Lines 281-287 Link Here
281
	DBC_RETVAL_IF_FAIL(str!=NULL,NULL);
281
	DBC_RETVAL_IF_FAIL(str!=NULL,NULL);
282
	DBC_RETVAL_IF_FAIL(what!=NULL,NULL);
282
	DBC_RETVAL_IF_FAIL(what!=NULL,NULL);
283
	while (*str){
283
	while (*str){
284
		char *a=index(what,*str);
284
		const char *a=index(what,*str);
285
		if (a) return(str);
285
		if (a) return(str);
286
		str++;
286
		str++;
287
	};
287
	};
Lines 472-487 Link Here
472
char *escape_char(const char *where,char what,char bywhat){
472
char *escape_char(const char *where,char what,char bywhat){
473
	DBC_RETVAL_IF_FAIL(where!=NULL,NULL);
473
	DBC_RETVAL_IF_FAIL(where!=NULL,NULL);
474
	int num=0;
474
	int num=0;
475
	char *tmp=index(where,what);
475
	char *tmp = (char *) index(where,what);
476
	while(tmp){
476
	while(tmp){
477
		num+=1;
477
		num+=1;
478
		tmp=index(tmp+1,what);
478
		tmp = (char *) index(tmp+1,what);
479
	};
479
	};
480
	if (num){
480
	if (num){
481
		char *rvalue=new char[strlen(where)+num*2+1];
481
		char *rvalue=new char[strlen(where)+num*2+1];
482
		*rvalue=0;
482
		*rvalue=0;
483
		char *r=rvalue;
483
		char *r=rvalue;
484
		tmp=index(where,what);
484
		tmp = (char *) index(where,what);
485
		while(tmp){
485
		while(tmp){
486
			if (tmp-where)
486
			if (tmp-where)
487
				memcpy(r,where,tmp-where);
487
				memcpy(r,where,tmp-where);
Lines 490-496 Link Here
490
			r[1]=what;
490
			r[1]=what;
491
			r+=2;
491
			r+=2;
492
			where=tmp+1;
492
			where=tmp+1;
493
			tmp=index(where,what);
493
			tmp = (char *) index(where,what);
494
		};
494
		};
495
		*r=0;
495
		*r=0;
496
		if (*where)
496
		if (*where)
Lines 962-978 Link Here
962
	DBC_RETVAL_IF_FAIL(a!=NULL,NULL);
962
	DBC_RETVAL_IF_FAIL(a!=NULL,NULL);
963
	DBC_RETVAL_IF_FAIL(b!=NULL,NULL);
963
	DBC_RETVAL_IF_FAIL(b!=NULL,NULL);
964
	int i=0;
964
	int i=0;
965
	char *temp=index(b,'/');
965
	char *temp = (char *) index(b,'/');
966
	while (temp){
966
	while (temp){
967
		while (*temp=='/') temp+=1;
967
		while (*temp=='/') temp+=1;
968
		temp=index(temp,'/');
968
		temp=index(temp,'/');
969
		i+=1;
969
		i+=1;
970
	};
970
	};
971
	i-=1;
971
	i-=1;
972
	temp=rindex(a,'/');
972
	temp = (char *) rindex(a,'/');
973
	while (temp && i>0){
973
	while (temp && i>0){
974
		*temp=0;
974
		*temp=0;
975
		char *tmp=rindex(a,'/');
975
		char *tmp = (char *) rindex(a,'/');
976
		*temp='/';
976
		*temp='/';
977
		temp=tmp;
977
		temp=tmp;
978
		i-=1;
978
		i-=1;

Return to bug 271645