if(strcmp(Ip2Name,"yes") == 0) {
if(strcmp(accip,ipantes) != 0) {
strcpy(ipantes,accip);
- ip2name(accip);
+ ip2name(accip,sizeof(accip));
strcpy(nameantes,accip);
} else strcpy(accip,nameantes);
}
ind2++;
strcpy(siteind,accurl);
str=siteind;
- for(z1=0; z1<strlen(str); z1++) {
- if(str[z1]=='?' || str[z1]=='-' || str[z1]=='.' || str[z1]==':' || str[z1]=='/' || str[z1]=='\\')
- str[z1]='_';
- }
+ for(z1=0; str[z1]; z1++) {
+ if(str[z1]=='?' || str[z1]=='-' || str[z1]=='.' || str[z1]==':' || str[z1]=='/' || str[z1]=='\\' || str[z1]=='*' ||
+ str[z1]=='\'' || str[z1]=='\"' || str[z1]=='$')
+ str[z1]='_';
+ }
sprintf(arqtt,"%s/%s",dirname,accuser);
if(access(arqtt, R_OK) != 0)
my_mkdir(arqtt);
strcpy(u2,user);
if(strcmp(Ip2Name,"yes") == 0)
- ip2name(u2);
+ ip2name(u2,sizeof(u2));
if(UserTabFile[0] != '\0') {
sprintf(warea,":%s:",u2);
if((str=(char *) strstr(userfile,warea)) != (char *) NULL ) {