# HG changeset patch # User Matti Hamalainen # Date 1213586403 -10800 # Node ID 1756960988e5b4a688701d51c93b127ee7cfd40b # Parent 04249b58c7384a518447f9e06f0a8faeeb180056 Replace a wtf static buffer with dynamic allocation. diff -r 04249b58c738 -r 1756960988e5 src/cue/cuesheet.c --- a/src/cue/cuesheet.c Mon Jun 16 05:48:57 2008 +0300 +++ b/src/cue/cuesheet.c Mon Jun 16 06:20:03 2008 +0300 @@ -158,10 +158,9 @@ for (i = 0; i < last_cue_track; i++) { - gchar _buf[65535]; - - g_snprintf(_buf, 65535, "cue://%s?%d", filename, i); - aud_playlist_add_url(aud_playlist_get_active(), _buf); + gchar *tmp = g_strdup_printf("cue://%s?%d", filename, i); + aud_playlist_add_url(aud_playlist_get_active(), tmp); + g_free(tmp); } free_cue_info(); @@ -190,7 +189,7 @@ play_thread = g_thread_self(); data->set_pb_ready(data); // it should be done in real input plugin? --yaz play_cue_uri(data, uri); - g_free(uri); uri = NULL; + g_free(uri); } static Tuple *get_tuple(gchar *uri)