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

Fix Area File (AREAS.BBS) parsing bug reported by Rob Starr:

If one of the link addresses had a point specified (e.g. ".1") then all the
addresses would get that point appended to them.
Fixed atofaddr(): stop parsing the address at the *first* whitespace char.
parent c53a8b86
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,9 @@ faddr_t atofaddr(const char *instr) ...@@ -61,7 +61,9 @@ faddr_t atofaddr(const char *instr)
faddr_t addr; faddr_t addr;
SAFECOPY(str, instr); SAFECOPY(str, instr);
truncsp(str); p=str;
FIND_WHITESPACE(p);
*p=0;
if(!stricmp(str,"ALL")) { if(!stricmp(str,"ALL")) {
addr.zone=addr.net=addr.node=addr.point=0xffff; addr.zone=addr.net=addr.node=addr.point=0xffff;
return(addr); return(addr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment