Date: Thu, 31 Jul 2003 16:25:05 +0200 (CEST) From: hm@kts.org (Hellmuth Michaelis) To: ISDN for BSD <freebsd-isdn@freebsd.org> Subject: RFT: capi_msgs.c diff Message-ID: <20030731142505.F0B35A4@bert.int.kts.org>
next in thread | raw e-mail | index | archive | help
Hi, would someone please have a look at this patch (or even verify it :-): the patch which makes incoming numbers display and work correctly in isdnd (for active AVM cards): *** capi_msgs.c-DIST Wed Jun 11 01:09:37 2003 --- capi_msgs.c Thu Jul 31 16:20:04 2003 *************** *** 532,538 **** z = x - 1; if (z >= TELNO_MAX) z = (TELNO_MAX-1); strncpy(cd->dst_telno, msg, z); ! msg += x; x = z; } cd->dst_telno[x] = '\0'; --- 532,538 ---- z = x - 1; if (z >= TELNO_MAX) z = (TELNO_MAX-1); strncpy(cd->dst_telno, msg, z); ! msg += x-1; x = z; } cd->dst_telno[x] = '\0'; *************** *** 548,554 **** z = x - 2; if (z >= TELNO_MAX) z = (TELNO_MAX-1); strncpy(cd->src_telno, msg, z); ! msg += x; x = z; } cd->src_telno[x] = '\0'; --- 548,554 ---- z = x - 2; if (z >= TELNO_MAX) z = (TELNO_MAX-1); strncpy(cd->src_telno, msg, z); ! msg += x-2; x = z; } cd->src_telno[x] = '\0'; hellmuth -- Hellmuth Michaelis Hamburg, Europe hm\at\kts.org www.kts.org a duck is like a bicycle because they both have two wheels except the duck (tl)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030731142505.F0B35A4>