From 173cde1eb4d43884a8fec5e5b4ee64a25eb5dfc7 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 18 May 2012 09:46:29 -0400 Subject: [PATCH] avdtp: Fix incorrect gchar buffer allocation The code was allocating an array of gchar pointers, where an array of gchar is expected. --- audio/gstavdtpsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/gstavdtpsink.c b/audio/gstavdtpsink.c index af04a5629..b5dfae4c9 100644 --- a/audio/gstavdtpsink.c +++ b/audio/gstavdtpsink.c @@ -1144,7 +1144,7 @@ static gboolean 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; -- 2.47.3