From ac92ac74984a75ca4e125c0eabf8acba048a2b35 Mon Sep 17 00:00:00 2001 From: "M. I. Spozta" Date: Thu, 22 Mar 2012 11:34:39 -0500 Subject: wmc: increase estimate decapsulation buffer size (dcbw) Some packets are much larger and require a lot more escaping than we thought so we need larger buffers here to be able to handle all packets. In this case, SMS receipt. --- libwmc/src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libwmc/src/utils.c') diff --git a/libwmc/src/utils.c b/libwmc/src/utils.c index 36dff6a3..059038ca 100644 --- a/libwmc/src/utils.c +++ b/libwmc/src/utils.c @@ -254,7 +254,7 @@ uml290_wmc_encapsulate (char *inbuf, estimated_out_len = cmd_len + strlen (AT_WMC_PREFIX); estimated_out_len += 3; /* CRC + trailer */ - estimated_out_len += cmd_len * 1.3; /* escaping */ + estimated_out_len += cmd_len * 2; /* escaping */ wmc_return_val_if_fail (outbuf_len > estimated_out_len, 0); memcpy (outbuf, AT_WMC_PREFIX, strlen (AT_WMC_PREFIX)); -- cgit v1.2.3-70-g09d2