bluez: avdtp: Fix incorrect gchar buffer allocation

The code was allocating an array of gchar pointers, where an array of
gchar is expected.
This commit is contained in:
Anderson Lizardo 2012-05-18 09:46:29 -04:00 committed by Tim-Philipp Müller
parent 6c31678d8b
commit 54b8979d67

View file

@ -1137,7 +1137,7 @@ gst_avdtp_sink_update_caps (GstAvdtpSink * self)
static gboolean static gboolean
gst_avdtp_sink_get_capabilities (GstAvdtpSink * self) 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_req *req = (void *) buf;
struct bt_get_capabilities_rsp *rsp = (void *) buf; struct bt_get_capabilities_rsp *rsp = (void *) buf;
int err; int err;