From 923d2c966f2b8a3582156467ad46ea8d200b30f1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Jan 2009 18:59:47 +0100 Subject: mapper: allocate the result of map_fs_to_utf8() --- src/mapper.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/mapper.h') diff --git a/src/mapper.h b/src/mapper.h index 74af0d133..d33a21bbf 100644 --- a/src/mapper.h +++ b/src/mapper.h @@ -44,7 +44,6 @@ map_uri_fs(const char *uri); * Determines the file system path of a directory object. * * @param directory the directory object - * @param a buffer which is MPD_PATH_MAX bytes long * @return the path in file system encoding, or NULL if mapping failed */ char * @@ -56,7 +55,6 @@ map_directory_fs(const struct directory *directory); * * @param directory the parent directory object * @param name the child's name in UTF-8 - * @param a buffer which is MPD_PATH_MAX bytes long * @return the path in file system encoding, or NULL if mapping failed */ char * @@ -67,7 +65,6 @@ map_directory_child_fs(const struct directory *directory, const char *name); * remote song. * * @param song the song object - * @param a buffer which is MPD_PATH_MAX bytes long * @return the path in file system encoding, or NULL if mapping failed */ char * @@ -78,11 +75,10 @@ map_song_fs(const struct song *song); * absolute) to a relative path in UTF-8 encoding. * * @param path_fs a path in file system encoding - * @param buffer a buffer which is MPD_PATH_MAX bytes long * @return the relative path in UTF-8, or NULL if mapping failed */ -const char * -map_fs_to_utf8(const char *path_fs, char *buffer); +char * +map_fs_to_utf8(const char *path_fs); /** * Returns the playlist directory. -- cgit v1.2.3