diff options
author | Max Kellermann <max@duempel.org> | 2011-09-09 22:17:35 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-09 22:55:57 +0200 |
commit | 61fc01e79e385bc903edf1fd0cac0e5843911d58 (patch) | |
tree | 3f51d966baa85fcf11b67dfb3378abfc388a51a6 /src/utils.h | |
parent | cceaec1d744b2059cc4ca25324da3c9a44d72191 (diff) | |
download | mpd-61fc01e79e385bc903edf1fd0cac0e5843911d58.tar.gz mpd-61fc01e79e385bc903edf1fd0cac0e5843911d58.tar.xz mpd-61fc01e79e385bc903edf1fd0cac0e5843911d58.zip |
utils: pass a const string to parsePath()
Remove the slash hack, allocate memory for the user name.
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index 8200400af..df36d1da0 100644 --- a/src/utils.h +++ b/src/utils.h @@ -31,6 +31,7 @@ } while (0) #endif /* !assert_static */ -char *parsePath(char *path); +char * +parsePath(const char *path); #endif |