--- lib/fdobex.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/lib/fdobex.c b/lib/fdobex.c index 7fa4a21..1c97e08 100644 --- a/lib/fdobex.c +++ b/lib/fdobex.c @@ -79,6 +79,11 @@ static int fdobex_read(obex_t *self, void *buf, int buflen) { struct obex_transport *trans = &self->trans; + if(trans->data.fd.fmt == FDOBEX_MT_SEQPACKET){ + /* set buflen large enough to read entire packet */ + buflen = self->mtu_rx; + } + #ifdef _WIN32 return _read(trans->fd, buf, buflen); #else -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html