The read() function should attempt to read browsing->imtu bytes and not sizeof(browsing->imtu). --- profiles/audio/avctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 4309c60..acce507 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -649,7 +649,7 @@ static gboolean session_browsing_cb(GIOChannel *chan, GIOCondition cond, sock = g_io_channel_unix_get_fd(chan); - ret = read(sock, buf, sizeof(browsing->imtu)); + ret = read(sock, buf, browsing->imtu); if (ret <= 0) goto failed; -- 1.8.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