aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-01 19:17:44 +0100
committerMax Kellermann <max@duempel.org>2009-01-01 19:17:44 +0100
commit80fa9183e4d30643b1e089d9b96f36a4b266276e (patch)
treeefaa0e4579cb5b7fc6da6610f3485072f384c609 /src/mapper.h
parent886ed1b225d50e5e6c220e11b5800f45d36a5d37 (diff)
downloadmpd-80fa9183e4d30643b1e089d9b96f36a4b266276e.tar.gz
mpd-80fa9183e4d30643b1e089d9b96f36a4b266276e.tar.xz
mpd-80fa9183e4d30643b1e089d9b96f36a4b266276e.zip
mapper: allocate playlist path from heap
Don't pass a static buffer to map_spl_utf8_to_fs().
Diffstat (limited to '')
-rw-r--r--src/mapper.h7
1 files changed, 4 insertions, 3 deletions
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