Skip to content
Snippets Groups Projects
Commit a286e1bb authored by rswindell's avatar rswindell
Browse files

Any type/amount of whitespace allowed between server addr and desc.

parent eca68efe
No related branches found
No related tags found
No related merge requests found
...@@ -665,14 +665,13 @@ get_distlist(void) ...@@ -665,14 +665,13 @@ get_distlist(void)
break; break;
case 's': case 's':
p=in_line+2; p=in_line+2;
tp=strchr(p,'\t'); tp=p;
if(tp!=NULL) while(*tp && *tp>' ') tp++;
*tp=0; /* truncate address at first tab */ *tp=0; /* truncate address at first whitespace */
else
tp=p;
SAFECOPY(server[s]->addr,p); SAFECOPY(server[s]->addr,p);
if((p=strrchr(tp+1,'\t'))!=NULL) /* description follows last tab */ p=tp+1;
SAFECOPY(server[s]->desc,++p); while(*p && *p<=' ') p++; /* desc follows whitepsace */
SAFECOPY(server[s]->desc,++p);
s++; s++;
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment