Mercurial > hg > xmms-sid
changeset 233:9b5704548219
Compiler complains about discarding the const qualifier, so let's be dumb
and g_strdup() those stupid arguments. Waste of resources, IMHO, but
maybe it helps portability.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 21 Dec 2004 13:32:04 +0000 |
parents | e613873c3379 |
children | 6f9764fbd693 |
files | src/xs_title.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xs_title.c Tue Dec 21 13:13:05 2004 +0000 +++ b/src/xs_title.c Tue Dec 21 13:32:04 2004 +0000 @@ -92,20 +92,23 @@ ptInput->file_ext = tmpFileExt; ptInput->file_path = tmpFilePath; - ptInput->track_name = infoString0; + ptInput->track_name = g_strdup(infoString0); ptInput->track_number = iSubTune; ptInput->album_name = NULL; - ptInput->performer = infoString1; + ptInput->performer = g_strdup(infoString1); ptInput->date = g_strdup((iSidModel == XS_SIDMODEL_6581) ? "SID6581" : "SID8580"); ptInput->year = 0; ptInput->genre = g_strdup("SID-tune"); - ptInput->comment = infoString2; + ptInput->comment = g_strdup(infoString2); /* Create the string */ pcResult = xmms_get_titlestring(xmms_get_gentitle_format(), ptInput); /* Dispose all allocated memory */ + g_free(ptInput->track_name); + g_free(ptInput->performer); + g_free(ptInput->comment); g_free(ptInput->date); g_free(ptInput->genre); g_free(ptInput);