bluez: avdtp: Fix incorrect gchar buffer allocation
authorAnderson Lizardo <anderson.lizardo@openbossa.org>
Fri, 18 May 2012 13:46:29 +0000 (09:46 -0400)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Jan 2013 14:30:13 +0000 (14:30 +0000)
The code was allocating an array of gchar pointers, where an array of
gchar is expected.

sys/bluez/gstavdtpsink.c

index 529f96c..333c665 100644 (file)
@@ -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;