From 61fc01e79e385bc903edf1fd0cac0e5843911d58 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Sep 2011 22:17:35 +0200 Subject: utils: pass a const string to parsePath() Remove the slash hack, allocate memory for the user name. --- src/utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/utils.h') 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 -- cgit v1.2.3