From 2fe719d859a1abe8ea1bcedde7129b8640aefd64 Mon Sep 17 00:00:00 2001 From: Heikki Hannikainen Date: Mon, 3 Mar 2008 16:52:26 +0000 Subject: [PATCH] Fine tune srccall_end matching git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@45 3ce903b1-3385-4e86-93cd-f9a4a239f7ac --- src/incoming.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/incoming.c b/src/incoming.c index 8334c1c..8b56844 100644 --- a/src/incoming.c +++ b/src/incoming.c @@ -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)