From 80fa9183e4d30643b1e089d9b96f36a4b266276e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 1 Jan 2009 19:17:44 +0100 Subject: mapper: allocate playlist path from heap Don't pass a static buffer to map_spl_utf8_to_fs(). --- src/mapper.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mapper.h') diff --git a/src/mapper.h b/src/mapper.h index 2aecd9a52..2f4ab353d 100644 --- a/src/mapper.h +++ b/src/mapper.h @@ -93,9 +93,10 @@ map_spl_path(void); /** * Maps a playlist name (without the ".m3u" suffix) to a file system - * path. + * path. The return value is allocated on the heap and must be freed + * with g_free(). */ -const char * -map_spl_utf8_to_fs(const char *name, char *buffer); +char * +map_spl_utf8_to_fs(const char *name); #endif -- cgit v1.2.3