mapper: allocate playlist path from heap

Don't pass a static buffer to map_spl_utf8_to_fs().
This commit is contained in:
Max Kellermann
2009-01-01 19:17:44 +01:00
parent 886ed1b225
commit 80fa9183e4
4 changed files with 60 additions and 47 deletions

View File

@@ -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