From 7e7251b8cb8c5f4f8490890a5a1c1706e080f45d Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 5 Jun 2016 23:08:32 +0200 Subject: conf: use macro CONFIG_PATH if defined (ref #134) --- src/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf.c b/src/conf.c index ee993ec..cc7b19f 100644 --- a/src/conf.c +++ b/src/conf.c @@ -164,8 +164,8 @@ int conf_path_get(char *path, size_t sz) return 0; } -#ifdef __ANDROID__ - str_ncpy(buf, "/data/local/tmp", sizeof(buf)); +#ifdef CONFIG_PATH + str_ncpy(buf, CONFIG_PATH, sizeof(buf)); (void)err; #else err = fs_gethome(buf, sizeof(buf)); -- cgit v1.2.3