From daf7c3db5aac09a8376f1c8ed499eb17202f77a9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 2 Jan 2009 10:48:55 +0100 Subject: mapper: allocate the result of map_directory_child_fs(), map_song_fs() Don't use fixed stack buffers. --- src/mapper.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/mapper.h') diff --git a/src/mapper.h b/src/mapper.h index ee8d34dab..74af0d133 100644 --- a/src/mapper.h +++ b/src/mapper.h @@ -59,9 +59,8 @@ map_directory_fs(const struct directory *directory); * @param a buffer which is MPD_PATH_MAX bytes long * @return the path in file system encoding, or NULL if mapping failed */ -const char * -map_directory_child_fs(const struct directory *directory, const char *name, - char *buffer); +char * +map_directory_child_fs(const struct directory *directory, const char *name); /** * Determines the file system path of a song. This must not be a @@ -71,8 +70,8 @@ map_directory_child_fs(const struct directory *directory, const char *name, * @param a buffer which is MPD_PATH_MAX bytes long * @return the path in file system encoding, or NULL if mapping failed */ -const char * -map_song_fs(const struct song *song, char *buffer); +char * +map_song_fs(const struct song *song); /** * Maps a file system path (relative to the music directory or -- cgit v1.2.3