aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-02 10:48:11 +0100
committerMax Kellermann <max@duempel.org>2009-01-02 10:48:11 +0100
commit72255d580e23405375562160bf05fb55d3248f39 (patch)
tree3730bdf7d0847b01f291c9ced0dc30856b45a26b /src/mapper.h
parentb2e3b644838bec1877bca9999569e0f82951ec1f (diff)
downloadmpd-72255d580e23405375562160bf05fb55d3248f39.tar.gz
mpd-72255d580e23405375562160bf05fb55d3248f39.tar.xz
mpd-72255d580e23405375562160bf05fb55d3248f39.zip
mapper: allocate the result of map_uri_fs(), map_directory_fs()
Don't use fixed stack buffers.
Diffstat (limited to '')
-rw-r--r--src/mapper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mapper.h b/src/mapper.h
index 2f4ab353d..ee8d34dab 100644
--- a/src/mapper.h
+++ b/src/mapper.h
@@ -37,8 +37,8 @@ void mapper_finish(void);
* is basically done by converting the URI to the file system charset
* and prepending the music directory.
*/
-const char *
-map_uri_fs(const char *uri, char *buffer);
+char *
+map_uri_fs(const char *uri);
/**
* Determines the file system path of a directory object.
@@ -47,8 +47,8 @@ map_uri_fs(const char *uri, char *buffer);
* @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_fs(const struct directory *directory, char *buffer);
+char *
+map_directory_fs(const struct directory *directory);
/**
* Determines the file system path of a directory's child (may be a