From 1c7bbc7f2c7dd7e528371fdb6ccebdc3fd884e4f Mon Sep 17 00:00:00 2001 From: José Bollo Date: Wed, 25 Oct 2017 11:29:20 +0200 Subject: database: use PATH_MAX of system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4b6567eb738c710109a2799f31575f83f5d852d1 Signed-off-by: José Bollo --- ll-database-binding/src/ll-database-binding.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'll-database-binding') diff --git a/ll-database-binding/src/ll-database-binding.c b/ll-database-binding/src/ll-database-binding.c index 14b8b20..bbbba80 100644 --- a/ll-database-binding/src/ll-database-binding.c +++ b/ll-database-binding/src/ll-database-binding.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include @@ -31,10 +31,6 @@ #define AFB_BINDING_VERSION 2 #include -#ifndef MAX_PATH -#define MAX_PATH 1024 -#endif - #define DBFILE "ll-database-binding.db" #if !defined(TO_STRING_FLAGS) @@ -92,7 +88,7 @@ static int get_database_path(char *buffer, size_t size) */ static int ll_database_binding_init() { - char path[MAX_PATH]; + char path[PATH_MAX]; int ret; ret = get_database_path(path, sizeof path); -- cgit 1.2.3-korg