From 56a341e2ce6fcf779abb42362e9f4ccd6a8d5752 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 23 May 2007 21:15:38 +0000 Subject: [PATCH] big enough buffer for the whole message for our debug git-svn-id: http://svn.openzap.org/svn/openzap/trunk@120 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/src/zap_isdn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/freetdm/src/zap_isdn.c b/libs/freetdm/src/zap_isdn.c index e1f59d4565..d952aa3418 100644 --- a/libs/freetdm/src/zap_isdn.c +++ b/libs/freetdm/src/zap_isdn.c @@ -93,7 +93,7 @@ static int zap_isdn_921_21(void *pvt, L2UCHAR *msg, L2INT mlen) zap_span_t *span = (zap_span_t *) pvt; zap_size_t len = (zap_size_t) mlen; #ifdef IODEBUG - char bb[512] = ""; + char bb[4096] = ""; print_bits(msg, (int)len, bb, sizeof(bb), 1); zap_log(ZAP_LOG_DEBUG, "WRITE %d\n%s\n%s\n\n", (int)len, LINE, bb); @@ -144,7 +144,7 @@ static void *zap_isdn_run(zap_thread_t *me, void *obj) len = sizeof(buf); if (zap_channel_read(data->dchan, buf, &len) == ZAP_SUCCESS) { #ifdef IODEBUG - char bb[512] = ""; + char bb[4096] = ""; print_bits(buf, (int)len, bb, sizeof(bb), 1); zap_log(ZAP_LOG_DEBUG, "READ %d\n%s\n%s\n\n", (int)len, LINE, bb); #endif