Fine tune srccall_end matching

git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@45 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
Heikki Hannikainen 2008-03-03 16:52:26 +00:00
parent 5fb433a86a
commit 2fe719d859
1 changed files with 4 additions and 3 deletions

View File

@ -281,10 +281,11 @@ int incoming_parse(struct worker_t *self, struct client_t *c, struct pbuf_t *pb)
if (info_end <= info_start)
return -1;
/* look up end of dstcall */
/* the logic behind this is slightly uncertain. */
/* look up end of dstcall (excluding SSID - this is the way dupecheck and
* mic-e parser wants it)
*/
dstcall_end = path_start;
while (dstcall_end < path_end && *dstcall_end != ',' && *dstcall_end != ',' && *dstcall_end != '-')
while (dstcall_end < path_end && *dstcall_end != '-' && *dstcall_end != ',' && *dstcall_end != ':')
dstcall_end++;
if (dstcall_end - path_start > CALLSIGNLEN_MAX)