So we don't rely on NUL terminators inside the data.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/994>
/* parse data */
labl->cue_point_id = GST_READ_UINT32_LE (data);
- labl->text = g_memdup (data + 4, size - 4);
+ labl->text = g_strndup ((const gchar *) data + 4, size - 4);
wav->labls = g_list_append (wav->labls, labl);
/* parse data */
note->cue_point_id = GST_READ_UINT32_LE (data);
- note->text = g_memdup (data + 4, size - 4);
+ note->text = g_strndup ((const gchar *) data + 4, size - 4);
wav->notes = g_list_append (wav->notes, note);