diff options
author | M. I. Spozta <mispozta@gmail.com> | 2012-03-22 11:34:39 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-03-22 11:35:47 -0500 |
commit | 3a39a14b4bab7246a6ca95ed77bceb714712d135 (patch) | |
tree | a2df70e8071d12ed5378c7afdb832ef273d3e417 | |
parent | 8b2bbdbcb2ef5e09fb36a011add84147e9219e7d (diff) |
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.
-rw-r--r-- | libwmc/src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |