Support synchronet packets with p in them

This commit is contained in:
Andrew Pamment 2018-02-11 12:03:48 +10:00
parent 66da53eb85
commit ccce4c1fb9

View File

@ -184,8 +184,10 @@ bool IsArc(char *file)
if(strlen(file)!=12) return(FALSE);
if(file[8]!='.') return(FALSE);
for(c=0;c<8;c++)
for(c=0;c<8;c++) {
if (c == 4 && tolower(file[c]) == 'p') continue;
if((file[c]<'0' || file[c]>'9') && ((tolower(file[c]) < 'a') || (tolower(file[c]) > 'f'))) return(FALSE);
}
strncpy(ext,&file[9],2);
ext[2]=0;