From: Sebastian Harl Date: Sat, 26 Apr 2014 10:33:10 +0000 (+0200) Subject: rrd_daemon: Fixed the resolved_path argument passed to realpath(). X-Git-Tag: v1.5.0-rc1~108^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F460%2Fhead;p=thirdparty%2Frrdtool-1.x.git rrd_daemon: Fixed the resolved_path argument passed to realpath(). The function expects a character pointer, not a pointer to an array of character pointers. --- diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 0d31fac4..8e46558c 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -1903,7 +1903,7 @@ static int handle_request_last (HANDLER_PROTO) /* {{{ */ static int handle_request_create (HANDLER_PROTO) /* {{{ */ { char *file, file_tmp[PATH_MAX]; - char *file_copy, *dir, *dir_tmp[PATH_MAX]; + char *file_copy, *dir, dir_tmp[PATH_MAX]; char *tok; int ac = 0; char *av[128];