Fixedd commandline address parsing

This commit is contained in:
Michiel Broek 2007-02-03 12:18:41 +00:00
parent c267018fd8
commit 0a67e85966
2 changed files with 12 additions and 1 deletions

View File

@ -6,6 +6,10 @@ v0.91.2 14-Jan-2007
If no suitable compressor found for binkp transfers then don't
complain.
mbselib:
Fixed commandline address parsing if a 2d address was given.
v0.91.1 22-Dec-2006

View File

@ -4,7 +4,7 @@
* Purpose ...............: BinkleyTerm outbound naming
*
*****************************************************************************
* Copyright (C) 1997-2005
* Copyright (C) 1997-2007
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@ -76,6 +76,13 @@ char *prepbuf(faddr *addr)
domain = xstrcpy(GetFidoDomain(addr->zone));
}
/*
* If we got a 2d address, add the default zone.
*/
if (addr->zone == 0 ) {
addr->zone = CFG.aka[0].zone;
}
if ((domain != NULL) && (strlen(CFG.aka[0].domain) != 0) && (strcasecmp(domain,CFG.aka[0].domain) != 0)) {
if ((p = strrchr(buf,'/')))
p++;