From 54b8979d67a603f4952585fde8f0e64d9377e8f4 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 18 May 2012 09:46:29 -0400 Subject: [PATCH] bluez: avdtp: Fix incorrect gchar buffer allocation The code was allocating an array of gchar pointers, where an array of gchar is expected. --- sys/bluez/gstavdtpsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/bluez/gstavdtpsink.c b/sys/bluez/gstavdtpsink.c index 529f96c1d7..333c6650f9 100644 --- a/sys/bluez/gstavdtpsink.c +++ b/sys/bluez/gstavdtpsink.c @@ -1137,7 +1137,7 @@ gst_avdtp_sink_update_caps (GstAvdtpSink * self) static gboolean gst_avdtp_sink_get_capabilities (GstAvdtpSink * self) { - gchar *buf[BT_SUGGESTED_BUFFER_SIZE]; + gchar buf[BT_SUGGESTED_BUFFER_SIZE]; struct bt_get_capabilities_req *req = (void *) buf; struct bt_get_capabilities_rsp *rsp = (void *) buf; int err;