]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
rrd_daemon: Fixed the resolved_path argument passed to realpath(). 460/head
authorSebastian Harl <sh@tokkee.org>
Sat, 26 Apr 2014 10:33:10 +0000 (12:33 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 26 Apr 2014 10:33:10 +0000 (12:33 +0200)
The function expects a character pointer, not a pointer to an array of
character pointers.

src/rrd_daemon.c

index 0d31fac445b4e7cddc946c7f5a84cc9ee306973d..8e46558c42c51218617c40f3f6e83101727b140b 100644 (file)
@@ -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];