From ccce4c1fb9993314f9641581eae67cbd7a08222b Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 11 Feb 2018 12:03:48 +1000 Subject: [PATCH] Support synchronet packets with p in them --- utils/magimail/src/magimail/misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/magimail/src/magimail/misc.c b/utils/magimail/src/magimail/misc.c index 2f0b041..430116a 100644 --- a/utils/magimail/src/magimail/misc.c +++ b/utils/magimail/src/magimail/misc.c @@ -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;