From eeb84200232c6bf97cc8e0ce64b97c44d4b9c070 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 2 Oct 2007 06:37:53 +0000 Subject: [PATCH] Better Synchronet version checking. --- xtrn/sbl/sbbslist.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xtrn/sbl/sbbslist.c b/xtrn/sbl/sbbslist.c index 946ef7f037..e94221debf 100644 --- a/xtrn/sbl/sbbslist.c +++ b/xtrn/sbl/sbbslist.c @@ -740,20 +740,17 @@ int main(int argc, char **argv) if(*sp==0) sp++; p=strstr(sp,"Synchronet"); - if(p!=NULL) { + if(p!=NULL && (for_os=strstr(sp," for "))!=NULL) { verified=TRUE; - for_os=strstr(sp," for "); - if(for_os==NULL) - for_os=""; p=strstr(sp,"Version "); if(p==NULL) version[0]=0; else { + for_os[12]=0; p+=8; /* skip "version" */ tp=strchr(p,'\r'); if(tp!=NULL) *tp=0; truncsp(p); - for_os[12]=0; tp=strchr(for_os+5,' '); if(tp!=NULL) *tp=0; truncsp(for_os); -- GitLab